|
2 | 2 | @inherits FilterBase |
3 | 3 | @attribute [BootstrapModuleAutoLoader("Filters/MultiFilter.razor.js", JSObjectReference = true)] |
4 | 4 |
|
5 | | -<FilterProvider> |
6 | | - @if (IsHeaderRow) |
7 | | - { |
| 5 | +@if (IsHeaderRow) |
| 6 | +{ |
8 | 7 |
|
9 | | - } |
10 | | - else |
11 | | - { |
12 | | - <div class="bb-multi-filter" id="@Id"> |
13 | | - @if (ShowSearch) |
14 | | - { |
15 | | - <BootstrapInput UseInputEvent="true" class="bb-multi-filter-search" |
16 | | - Value="@_searchText" bind-value:event="oninput" IsAutoFocus="true" |
17 | | - PlaceHolder="@SearchPlaceHolderText" IsSelectAllTextOnFocus="true" |
18 | | - OnValueChanged="OnSearchValueChanged" ShowLabel="false" SkipValidate="true"></BootstrapInput> |
19 | | - } |
20 | | - <div class="bb-multi-filter-list"> |
21 | | - <div class="bb-multi-filter-header"> |
22 | | - <Checkbox Value="GetAllState()" ShowAfterLabel="true" ShowLabel="false" SkipValidate="true" |
23 | | - DisplayText="@SelectAllText" OnStateChanged="@OnStateChanged" State="_selectAllState" /> |
24 | | - </div> |
25 | | - <div class="bb-multi-filter-body scroll"> |
26 | | - @foreach (var item in GetItems()) |
27 | | - { |
28 | | - <div class="bb-multi-filter-body-item"> |
29 | | - <Checkbox @bind-Value="@item.Active" ShowAfterLabel="true" |
30 | | - ShowLabel="false" SkipValidate="true" DisplayText="@item.Text" /> |
31 | | - </div> |
32 | | - } |
33 | | - </div> |
| 8 | +} |
| 9 | +else |
| 10 | +{ |
| 11 | + <div class="bb-multi-filter" id="@Id"> |
| 12 | + @if (ShowSearch) |
| 13 | + { |
| 14 | + <BootstrapInput UseInputEvent="true" class="bb-multi-filter-search" |
| 15 | + Value="@_searchText" bind-value:event="oninput" IsAutoFocus="true" |
| 16 | + PlaceHolder="@SearchPlaceHolderText" IsSelectAllTextOnFocus="true" |
| 17 | + OnValueChanged="OnSearchValueChanged" ShowLabel="false" SkipValidate="true"></BootstrapInput> |
| 18 | + } |
| 19 | + <div class="bb-multi-filter-list"> |
| 20 | + <div class="bb-multi-filter-header"> |
| 21 | + <Checkbox Value="GetAllState()" ShowAfterLabel="true" ShowLabel="false" SkipValidate="true" |
| 22 | + DisplayText="@SelectAllText" OnStateChanged="@OnStateChanged" State="_selectAllState" /> |
| 23 | + </div> |
| 24 | + <div class="bb-multi-filter-body scroll"> |
| 25 | + @foreach (var item in GetItems()) |
| 26 | + { |
| 27 | + <div class="bb-multi-filter-body-item"> |
| 28 | + <Checkbox @bind-Value="@item.Active" ShowAfterLabel="true" |
| 29 | + ShowLabel="false" SkipValidate="true" DisplayText="@item.Text" /> |
| 30 | + </div> |
| 31 | + } |
34 | 32 | </div> |
35 | | - @if (_source == null) |
36 | | - { |
37 | | - <div class="bb-multi-filter-loading"> |
38 | | - @if (LoadingTemplate != null) |
39 | | - { |
40 | | - @LoadingTemplate |
41 | | - } |
42 | | - else |
43 | | - { |
44 | | - <Spinner Color="Color.Primary" /> |
45 | | - } |
46 | | - </div> |
47 | | - } |
48 | 33 | </div> |
49 | | - } |
50 | | -</FilterProvider> |
| 34 | + @if (_source == null) |
| 35 | + { |
| 36 | + <div class="bb-multi-filter-loading"> |
| 37 | + @if (LoadingTemplate != null) |
| 38 | + { |
| 39 | + @LoadingTemplate |
| 40 | + } |
| 41 | + else |
| 42 | + { |
| 43 | + <Spinner Color="Color.Primary" /> |
| 44 | + } |
| 45 | + </div> |
| 46 | + } |
| 47 | + </div> |
| 48 | +} |
0 commit comments