Esempio n. 1
0
        public Select(
            string selectedValue = null,
            DataSource datasource = null,
            SelectAppearanceType appearance = null,
            bool liveSearch = false,
            bool showTick = false,
            bool showArrow = false,
            bool autoWidth = true,
            string width = null,
            bool disabled = false,
            string header = null,
            string container = null,
            string clientId = null)
            : base("_Select", clientId)
        {
            SetSelectedValue(selectedValue)
                .SetDataSource(datasource)
                .SetAppearance(appearance)
                .SetLiveSearch(liveSearch)
                .SetTick(showTick)
                .SetArrow(showArrow)
                .SetDisabled(disabled)
                .SetHeader(header)
                .SetContainer(container);

            if (width != null)
                SetWidth(width);
            else
                SetAutoWidth();
        }
Esempio n. 2
0
 public ButtonGroup(bool toggle = false, ButtonGroupSize size = null, string selectedValue = null, DataSource dataSource = null, string clientId = null)
     : base("_ButtonGroup", clientId)
 {
     SetToggle(toggle)
         .SetSize(size)
         .SetDataSource(dataSource)
         .SetSelectedValue(selectedValue);
 }
Esempio n. 3
0
 public Select SetDataSource(DataSource dataSource)
 {
     DataSource = dataSource;
     return this;
 }
Esempio n. 4
0
 public ButtonGroup SetDataSource(DataSource dataSource)
 {
     DataSource = dataSource;
     return this;
 }