|
5 | 5 |
|
6 | 6 | <h4>@Localizer["MultiSelectsDescription"]</h4> |
7 | 7 |
|
8 | | -<DemoBlock Title="@Localizer["MultiSelectColorTitle"]" Introduction="@Localizer["MultiSelectColorIntro"]" Name="Color"> |
| 8 | +@* <DemoBlock Title="@Localizer["MultiSelectColorTitle"]" Introduction="@Localizer["MultiSelectColorIntro"]" Name="Color"> |
9 | 9 | <div class="row g-3"> |
10 | 10 | <div class="col-12 col-sm-6"> |
11 | 11 | <MultiSelect TValue="string" Items="@Items1" /> |
12 | 12 | </div> |
13 | 13 | <div class="col-12 col-sm-6"> |
14 | | - <MultiSelect TValue="string" Color="Color.Primary" Items="@Items2" /> |
| 14 | + <MultiSelect TValue="string" Color="Color.Primary" Items="@Items2"></MultiSelect> |
15 | 15 | </div> |
16 | 16 | <div class="col-12 col-sm-6"> |
17 | | - <MultiSelect TValue="string" Color="Color.Success" Items="@Items3" /> |
| 17 | + <MultiSelect TValue="string" Color="Color.Success" Items="@Items3"></MultiSelect> |
18 | 18 | </div> |
19 | 19 | <div class="col-12 col-sm-6"> |
20 | | - <MultiSelect TValue="string" Color="Color.Danger" Items="@Items4" /> |
| 20 | + <MultiSelect TValue="string" Color="Color.Danger" Items="@Items4"></MultiSelect> |
21 | 21 | </div> |
22 | 22 | <div class="col-12 col-sm-6"> |
23 | | - <MultiSelect TValue="string" Color="Color.Warning" Items="@Items5" /> |
| 23 | + <MultiSelect TValue="string" Color="Color.Warning" Items="@Items5"></MultiSelect> |
24 | 24 | </div> |
25 | 25 | <div class="col-12 col-sm-6"> |
26 | | - <MultiSelect TValue="string" Color="Color.Info" Items="@Items6" /> |
| 26 | + <MultiSelect TValue="string" Color="Color.Info" Items="@Items6"></MultiSelect> |
27 | 27 | </div> |
28 | 28 | <div class="col-12 col-sm-6"> |
29 | | - <MultiSelect TValue="string" Color="Color.Secondary" Items="@Items7" /> |
| 29 | + <MultiSelect TValue="string" Color="Color.Secondary" Items="@Items7"></MultiSelect> |
30 | 30 | </div> |
31 | 31 | <div class="col-12 col-sm-6"> |
32 | | - <MultiSelect TValue="string" Color="Color.Dark" Items="@Items8" /> |
| 32 | + <MultiSelect TValue="string" Color="Color.Dark" Items="@Items8"></MultiSelect> |
33 | 33 | </div> |
34 | 34 | </div> |
35 | 35 | </DemoBlock> |
|
40 | 40 | </section> |
41 | 41 | <div class="row g-3"> |
42 | 42 | <div class="col-12 col-sm-4"> |
43 | | - <MultiSelect TValue="string" Items="@Items1" IsSingleLine="true" /> |
| 43 | + <MultiSelect TValue="string" Items="@Items1" IsSingleLine="true"></MultiSelect> |
44 | 44 | </div> |
45 | 45 | </div> |
46 | 46 | </DemoBlock> |
|
51 | 51 | </section> |
52 | 52 | <div class="row g-3"> |
53 | 53 | <div class="col-12 col-sm-6"> |
54 | | - <MultiSelect Items="@Items1" @bind-Value="@SelectedItemsValue" /> |
| 54 | + <MultiSelect Items="@Items1" @bind-Value="@SelectedItemsValue"></MultiSelect> |
55 | 55 | </div> |
56 | 56 | <div class="col-12 col-sm-6"> |
57 | | - <Button Icon="fa-solid fa-plus" Text="@Localizer["MultiSelectAdd"]" OnClick="@AddItems" class="me-1" /> |
58 | | - <Button Icon="fa-solid fa-minus" Text="@Localizer["MultiSelectDecrease"]" OnClick="@RemoveItems" /> |
59 | | - <Button Icon="fa-regular fa-trash-can" Text="@Localizer["MultiSelectClean"]" OnClick="@ClearItems" /> |
| 57 | + <Button Icon="fa-solid fa-plus" Text="@Localizer["MultiSelectAdd"]" OnClick="@AddItems" class="me-1"></Button> |
| 58 | + <Button Icon="fa-solid fa-minus" Text="@Localizer["MultiSelectDecrease"]" OnClick="@RemoveItems"></Button> |
| 59 | + <Button Icon="fa-regular fa-trash-can" Text="@Localizer["MultiSelectClean"]" OnClick="@ClearItems"></Button> |
60 | 60 | </div> |
61 | 61 | </div> |
62 | 62 | <section ignore>@SelectedItemsValue</section> |
|
66 | 66 | <section ignore>@((MarkupString)Localizer["MultiSelectBindingCollectionDescription"].Value)</section> |
67 | 67 | <div class="row g-3"> |
68 | 68 | <div class="col-12 col-sm-6"> |
69 | | - <MultiSelect Items="@Items" @bind-Value="@SelectedArrayValues" Max="4" Min="2" /> |
| 69 | + <MultiSelect Items="@Items" @bind-Value="@SelectedArrayValues" Max="4" Min="2"></MultiSelect> |
70 | 70 | </div> |
71 | 71 | <div class="col-12 col-sm-6"> |
72 | | - <Button Icon="fa-solid fa-plus" Text="@Localizer["MultiSelectAdd"]" OnClick="@AddListItems" class="me-1" /> |
73 | | - <Button Icon="fa-solid fa-minus" Text="@Localizer["MultiSelectDecrease"]" OnClick="@RemoveListItems" /> |
74 | | - <Button Icon="fa-regular fa-trash-can" Text="@Localizer["MultiSelectClean"]" OnClick="@ClearListItems" /> |
| 72 | + <Button Icon="fa-solid fa-plus" Text="@Localizer["MultiSelectAdd"]" OnClick="@AddListItems" class="me-1"></Button> |
| 73 | + <Button Icon="fa-solid fa-minus" Text="@Localizer["MultiSelectDecrease"]" OnClick="@RemoveListItems"></Button> |
| 74 | + <Button Icon="fa-regular fa-trash-can" Text="@Localizer["MultiSelectClean"]" OnClick="@ClearListItems"></Button> |
75 | 75 | </div> |
76 | 76 | </div> |
77 | 77 | <section ignore>@(string.Join(",", SelectedArrayValues))</section> |
|
84 | 84 | <MultiSelect Items="@LongItems" @bind-Value="@SelectedIntArrayValues" /> |
85 | 85 | </div> |
86 | 86 | <div class="col-12 col-sm-6"> |
87 | | - <Button Icon="fa-solid fa-plus" Text="@Localizer["MultiSelectAdd"]" OnClick="@AddArrayItems" class="me-1" /> |
88 | | - <Button Icon="fa-solid fa-minus" Text="@Localizer["MultiSelectDecrease"]" OnClick="@RemoveArrayItems" /> |
89 | | - <Button Icon="fa-regular fa-trash-can" Text="@Localizer["MultiSelectClean"]" OnClick="@ClearArrayItems" /> |
| 87 | + <Button Icon="fa-solid fa-plus" Text="@Localizer["MultiSelectAdd"]" OnClick="@AddArrayItems" class="me-1"></Button> |
| 88 | + <Button Icon="fa-solid fa-minus" Text="@Localizer["MultiSelectDecrease"]" OnClick="@RemoveArrayItems"></Button> |
| 89 | + <Button Icon="fa-regular fa-trash-can" Text="@Localizer["MultiSelectClean"]" OnClick="@ClearArrayItems"></Button> |
90 | 90 | </div> |
91 | 91 | </div> |
92 | 92 | <section ignore>@(string.Join(",", SelectedIntArrayValues))</section> |
93 | 93 | </DemoBlock> |
94 | 94 |
|
95 | 95 | <DemoBlock Title="@Localizer["MultiSelectBindingEnumCollectionTitle"]" Introduction="@Localizer["MultiSelectBindingEnumCollectionIntro"]" Name="BindingEnumCollection"> |
96 | 96 | <section ignore>@((MarkupString)Localizer["MultiSelectBindingEnumCollectionDescription"].Value)</section> |
97 | | - <MultiSelect @bind-Value="@SelectedEnumValues" /> |
| 97 | + <MultiSelect @bind-Value="@SelectedEnumValues"></MultiSelect> |
98 | 98 | <section ignore>@(string.Join(",", SelectedEnumValues))</section> |
| 99 | +</DemoBlock> *@ |
| 100 | + |
| 101 | +<DemoBlock Title="@Localizer["MultiSelectFlagsEnumTitle"]" Introduction="@Localizer["MultiSelectFlagsEnumIntro"]" |
| 102 | + Name="Flags"> |
| 103 | + <section ignore> |
| 104 | + <Pre>[Flags] |
| 105 | +private enum MultiSelectEnumFoo |
| 106 | +{ |
| 107 | + One = 1, |
| 108 | + Two = 2, |
| 109 | + Three = 4, |
| 110 | + Four = 8 |
| 111 | +}</Pre> |
| 112 | + </section> |
| 113 | + <MultiSelect @bind-Value="@EnumFoo"></MultiSelect> |
99 | 114 | </DemoBlock> |
100 | 115 |
|
101 | | -<DemoBlock Title="@Localizer["MultiSelectSearchTitle"]" Introduction="@Localizer["MultiSelectSearchIntro"]" Name="Search"> |
| 116 | +@* <DemoBlock Title="@Localizer["MultiSelectSearchTitle"]" Introduction="@Localizer["MultiSelectSearchIntro"]" Name="Search"> |
102 | 117 | <section ignore>@((MarkupString)Localizer["MultiSelectSearchDescription"].Value)</section> |
103 | 118 | <MultiSelect Items="@Items" @bind-Value="@SelectedSearchItemsValue" ShowSearch="true" OnSearchTextChanged="@OnSearch" /> |
104 | 119 | <section ignore>@SelectedSearchItemsValue</section> |
|
192 | 207 | <section ignore>@((MarkupString)Localizer["MultiSelectCascadingDescription"].Value)</section> |
193 | 208 | <div class="row g-3"> |
194 | 209 | <div class="col-12 col-sm-6"> |
195 | | - <Select TValue="string" Items="@CascadingItems2" OnSelectedItemChanged="@OnCascadeBindSelectClick" /> |
| 210 | + <Select TValue="string" Items="@_cascadingItems2" OnSelectedItemChanged="@OnCascadeBindSelectClick"></Select> |
196 | 211 | </div> |
197 | 212 | <div class="col-12 col-sm-6"> |
198 | 213 | <MultiSelect TValue="string" Items="@CascadingItems1" /> |
|
253 | 268 | <Display Value="@_editString"></Display> |
254 | 269 | </div> |
255 | 270 | </div> |
256 | | -</DemoBlock> |
| 271 | +</DemoBlock> *@ |
257 | 272 |
|
258 | 273 | <AttributeTable Items="@GetAttributes()" /> |
259 | 274 |
|
|
0 commit comments