File tree Expand file tree Collapse file tree 2 files changed +39
-4
lines changed
src/BootstrapBlazor.Server/Components/Samples Expand file tree Collapse file tree 2 files changed +39
-4
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,41 @@ private enum MultiSelectEnumFoo
114114</DemoBlock >
115115
116116<DemoBlock Title =" @Localizer[" MultiSelectSearchTitle " ]" Introduction =" @Localizer[" MultiSelectSearchIntro " ]" Name =" Search" >
117- <section ignore >@( (MarkupString )Localizer [" MultiSelectSearchDescription" ].Value ) </section >
118- <MultiSelect Items =" @Items" @bind-Value =" @SelectedSearchItemsValue" ShowSearch =" true" OnSearchTextChanged =" @OnSearch" ></MultiSelect >
119- <section ignore >@SelectedSearchItemsValue </section >
120- <ConsoleLogger @ref =" Logger" ></ConsoleLogger >
117+ <section ignore >
118+ <p >@( (MarkupString )Localizer [" MultiSelectSearchDescription" ].Value ) </p >
119+ <div class =" row g-3" >
120+ <div class =" col-12 col-sm-6" >
121+ <BootstrapInputGroup >
122+ <BootstrapInputGroupLabel DisplayText =" ShowSearch" />
123+ <Checkbox @bind-Value =" @_showSearch" />
124+ </BootstrapInputGroup >
125+ </div >
126+ <div class =" col-12 col-sm-6" >
127+ <BootstrapInputGroup >
128+ <BootstrapInputGroupLabel DisplayText =" IsFixedSearch" />
129+ <Checkbox @bind-Value =" @_isFixedSearch" />
130+ </BootstrapInputGroup >
131+ </div >
132+ </div >
133+ </section >
134+
135+ <div class =" row g-3" >
136+ <div class =" col-12 col-sm-6" >
137+ <MultiSelect Items =" @Items" @bind-Value =" @SelectedSearchItemsValue"
138+ ShowSearch =" _showSearch" IsFixedSearch =" _isFixedSearch" OnSearchTextChanged =" @OnSearch" >
139+ </MultiSelect >
140+ </div >
141+ <div class =" col-12 col-sm-6" >
142+ <MultiSelect Items =" @LongItems" @bind-Value =" @SelectedMaxItemsValue"
143+ ShowSearch =" _showSearch" IsFixedSearch =" _isFixedSearch" >
144+ </MultiSelect >
145+ </div >
146+ </div >
147+
148+ <section ignore >
149+ <p >@SelectedSearchItemsValue </p >
150+ <ConsoleLogger @ref =" Logger" ></ConsoleLogger >
151+ </section >
121152</DemoBlock >
122153
123154<DemoBlock Title =" @Localizer[" MultiSelectGroupTitle " ]" Introduction =" @Localizer[" MultiSelectGroupIntro " ]" Name =" Group" >
Original file line number Diff line number Diff line change @@ -108,6 +108,10 @@ private enum MultiSelectEnumFoo
108108
109109 private string ? _editString ;
110110
111+ private bool _isFixedSearch ;
112+
113+ private bool _showSearch ;
114+
111115 private async Task < SelectedItem > OnEditCallback ( string value )
112116 {
113117 await Task . Delay ( 100 ) ;
You can’t perform that action at this time.
0 commit comments