File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed
src/BootstrapBlazor.Server/Components/Samples Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -123,18 +123,24 @@ private enum MultiSelectEnumFoo
123123 <Checkbox @bind-Value =" @_isFixedSearch" />
124124 </BootstrapInputGroup >
125125 </div >
126+ <div class =" col-12 col-sm-6" >
127+ <BootstrapInputGroup >
128+ <BootstrapInputGroupLabel DisplayText =" IsClearable" />
129+ <Checkbox @bind-Value =" @_isClearable" />
130+ </BootstrapInputGroup >
131+ </div >
126132 </div >
127133 </section >
128134
129135 <div class =" row g-3" >
130136 <div class =" col-12 col-sm-6" >
131137 <MultiSelect Items =" @Items" @bind-Value =" @SelectedSearchItemsValue"
132- ShowSearch =" true" IsFixedSearch =" _isFixedSearch" OnSearchTextChanged =" @OnSearch" >
138+ ShowSearch =" true" IsFixedSearch =" _isFixedSearch" IsClearable = " _isClearable " OnSearchTextChanged =" @OnSearch" >
133139 </MultiSelect >
134140 </div >
135141 <div class =" col-12 col-sm-6" >
136142 <MultiSelect Items =" @LongItems" @bind-Value =" @SelectedMaxItemsValue"
137- ShowSearch =" true" IsFixedSearch =" _isFixedSearch" >
143+ ShowSearch =" true" IsFixedSearch =" _isFixedSearch" IsClearable = " _isClearable " >
138144 </MultiSelect >
139145 </div >
140146 </div >
Original file line number Diff line number Diff line change 433433 Name =" IsVirtualize" >
434434 <section ignore >
435435 <p >@( (MarkupString )Localizer [" SelectsVirtualizeDescription" ].Value ) </p >
436- <div class =" row mb -3" >
436+ <div class =" row g -3" >
437437 <div class =" col-12 col-sm-6" >
438438 <BootstrapInputGroup >
439439 <BootstrapInputGroupLabel DisplayText =" ShowSearch" />
440440 <Checkbox @bind-Value =" @_showSearch" />
441441 </BootstrapInputGroup >
442442 </div >
443+ <div class =" col-12 col-sm-6" >
444+ <BootstrapInputGroup >
445+ <BootstrapInputGroupLabel DisplayText =" IsFixedSearch" />
446+ <Checkbox @bind-Value =" @_isFixedSearch" />
447+ </BootstrapInputGroup >
448+ </div >
443449 <div class =" col-12 col-sm-6" >
444450 <BootstrapInputGroup >
445451 <BootstrapInputGroupLabel DisplayText =" IsClearable" />
452458 <p class =" code-label" >1. 使用 OnQueryAsync 作为数据源</p >
453459 <div class =" row mb-3" >
454460 <div class =" col-6" >
455- <Select IsVirtualize =" true" OnQueryAsync =" OnQueryAsync" @bind-Value =" VirtualItem1" ShowSearch =" _showSearch" IsClearable =" _isClearable" ></Select >
461+ <Select IsVirtualize =" true" OnQueryAsync =" OnQueryAsync" @bind-Value =" VirtualItem1"
462+ ShowSearch =" _showSearch" IsFixedSearch =" _isFixedSearch" IsClearable =" _isClearable" ></Select >
456463 </div >
457464 <div class =" col-6" >
458465 <Display TValue =" string" Value =" @VirtualItem1?.Text" ></Display >
462469 <p class =" code-label" >2. 使用 Items 作为数据源</p >
463470 <div class =" row" >
464471 <div class =" col-6" >
465- <Select IsVirtualize =" true" Items =" VirtualItems" @bind-Value =" VirtualItem2" ShowSearch =" _showSearch" IsClearable =" _isClearable" ></Select >
472+ <Select IsVirtualize =" true" Items =" VirtualItems" @bind-Value =" VirtualItem2"
473+ ShowSearch =" _showSearch" IsFixedSearch =" _isFixedSearch" IsClearable =" _isClearable" ></Select >
466474 </div >
467475 <div class =" col-6" >
468476 <Display TValue =" string" Value =" @VirtualItem2?.Text" ></Display >
You can’t perform that action at this time.
0 commit comments