Beispiel #1
0
        public static void Dropdown
            (this IAutoviewDto autoviewDto, string propertyName, List <SelectListItem> selectListItems, string displayName = default, string cssId = default, string cssClass = default)
        {
            string propertyValue = Extensions.GetPropertyValue(autoviewDto, propertyName);

            var dropdownInstance = new Elements.Dropdown.Dropdown(propertyName, propertyValue, selectListItems, displayName, cssId, cssClass);

            autoviewDto.InitalElement(element: dropdownInstance);
        }
Beispiel #2
0
        public static void Textbox
            (this IAutoviewDto autoviewDto, string propertyName, string displayName = default, string cssId = default, string cssClass = default)
        {
            string propertyValue = Extensions.GetPropertyValue(autoviewDto, propertyName);

            var textboxInstance = new Elements.Inputs.Textbox(propertyName, propertyValue, displayName, cssId, cssClass);

            autoviewDto.InitalElement(element: textboxInstance);
        }