コード例 #1
0
ファイル: Select.cs プロジェクト: renhammington/UxFoundation
        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();
        }
コード例 #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);
 }
コード例 #3
0
ファイル: Select.cs プロジェクト: renhammington/UxFoundation
 public Select SetDataSource(DataSource dataSource)
 {
     DataSource = dataSource;
     return this;
 }
コード例 #4
0
 public ButtonGroup SetDataSource(DataSource dataSource)
 {
     DataSource = dataSource;
     return this;
 }