File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
src/BootstrapBlazor.Server/Components/Samples Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,14 @@ private enum MultiSelectEnumFoo
351351 </div >
352352 </DemoBlock >
353353
354+ <DemoBlock Title =" @Localizer[" MultiSelectGenericTitle " ]" Introduction =" @Localizer[" MultiSelectGenericIntro " ]" Name =" Generic" >
355+ <div class =" row" >
356+ <div class =" col-12" >
357+ <MultiSelectGeneric Items =" @FooItems" @bind-Value =" _genericValue" ShowSearch =" true" IsPopover =" true" ></MultiSelectGeneric >
358+ </div >
359+ </div >
360+ </DemoBlock >
361+
354362<AttributeTable Items =" @GetAttributes()" ></AttributeTable >
355363
356364<EventTable Items =" @GetEvents()" ></EventTable >
Original file line number Diff line number Diff line change @@ -125,6 +125,11 @@ private enum MultiSelectEnumFoo
125125 private bool _showToolbar = true ;
126126 private bool _showSearch = true ;
127127
128+ [ NotNull ]
129+ private List < SelectedItem < Foo > > ? FooItems { get ; set ; }
130+
131+ private List < Foo > ? _genericValue = null ;
132+
128133 private async Task < SelectedItem > OnEditCallback ( string value )
129134 {
130135 await Task . Delay ( 100 ) ;
@@ -188,6 +193,7 @@ protected override void OnInitialized()
188193 Items8 = GenerateItems ( ) ;
189194 TemplateItems = GenerateItems ( ) ;
190195 EditableItems = GenerateItems ( ) ;
196+ FooItems = [ .. Foo . GenerateFoo ( LocalizerFoo ) . Select ( i => new SelectedItem < Foo > ( i , i . Name ! ) ) ] ;
191197
192198 // 初始化数据
193199 DataSource =
You can’t perform that action at this time.
0 commit comments