|
14 | 14 | <Search IsAutoFocus="true" |
15 | 15 | PlaceHolder="@Localizer["SearchesPlaceHolder"]" |
16 | 16 | OnSearch="@OnSearch" |
17 | | - IsSelectAllTextOnFocus="true" /> |
18 | | - <ConsoleLogger @ref="Logger" /> |
| 17 | + IsSelectAllTextOnFocus="true"></Search> |
| 18 | + <ConsoleLogger @ref="Logger"></ConsoleLogger> |
19 | 19 | </DemoBlock> |
20 | 20 |
|
21 | 21 | <DemoBlock Title="@Localizer["SearchesDisplayButtonTitle"]" |
|
25 | 25 | ShowClearButton="true" |
26 | 26 | OnSearch="@OnDisplaySearch" |
27 | 27 | OnClear="@OnClear"></Search> |
28 | | - <ConsoleLogger @ref="DisplayLogger" /> |
| 28 | + <ConsoleLogger @ref="DisplayLogger"></ConsoleLogger> |
29 | 29 | </DemoBlock> |
30 | 30 |
|
31 | 31 | <DemoBlock Title="@Localizer["SearchesItemTemplateTitle"]" |
|
56 | 56 | Name="keyboards"> |
57 | 57 | <Search PlaceHolder="@Localizer["SearchesPlaceHolder"]" |
58 | 58 | IsTriggerSearchByInput="false" |
59 | | - OnSearch="@OnKeyboardSearch" /> |
60 | | - <ConsoleLogger @ref="KeyboardLogger" /> |
| 59 | + OnSearch="@OnKeyboardSearch"></Search> |
| 60 | + <ConsoleLogger @ref="KeyboardLogger"></ConsoleLogger> |
61 | 61 | </DemoBlock> |
62 | 62 |
|
63 | 63 | <DemoBlock Title="@Localizer["SearchesValidateFormTitle"]" |
64 | 64 | Introduction="@Localizer["SearchesValidateFormIntro"]" |
65 | 65 | Name="ValidateForm"> |
66 | 66 | <ValidateForm Model="@Model"> |
67 | | - <Search @bind-Value="Model.Name" OnSearch="@OnModelSearch" /> |
| 67 | + <Search @bind-Value="Model.Name" OnSearch="@OnModelSearch"></Search> |
68 | 68 | </ValidateForm> |
69 | 69 | </DemoBlock> |
70 | 70 |
|
| 71 | +<DemoBlock Title="@Localizer["SearchesShowPrefixIconTitle"]" |
| 72 | + Introduction="@Localizer["SearchesShowPrefixIconIntro"]" |
| 73 | + Name="ShowPrefixIcon"> |
| 74 | + <section ignore>@((MarkupString)Localizer["SearchesShowPrefixIconDescription"].Value)</section> |
| 75 | + <div class="row g-3"> |
| 76 | + <div class="col-12 col-sm-6"> |
| 77 | + <Search PlaceHolder="@Localizer["SearchesPlaceHolder"]" |
| 78 | + OnSearch="@OnModelSearch" |
| 79 | + ShowClearButton="false" ShowSearchButton="false" |
| 80 | + ShowPrefixIcon="true" PrefixIcon="fa fa-flag"></Search> |
| 81 | + </div> |
| 82 | + <div class="col-12 col-sm-6"> |
| 83 | + <Search PlaceHolder="@Localizer["SearchesPlaceHolder"]" |
| 84 | + OnSearch="@OnModelSearch" |
| 85 | + ShowClearButton="false" ShowSearchButton="false" |
| 86 | + ShowPrefixIcon="true"> |
| 87 | + <PrefixIconTemplate> |
| 88 | + <div class="search-custom-prefix"> |
| 89 | + <svg width="16" height="16" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11 16V42" stroke="#d0021b" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M24 29V42" stroke="#d0021b" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M24 19V6" stroke="#d0021b" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M37 6V32" stroke="#d0021b" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M11 16C13.7614 16 16 13.7614 16 11C16 8.23858 13.7614 6 11 6C8.23858 6 6 8.23858 6 11C6 13.7614 8.23858 16 11 16Z" fill="none" stroke="#d0021b" stroke-width="3" stroke-linejoin="round"/><path d="M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z" fill="none" stroke="#d0021b" stroke-width="3" stroke-linejoin="round"/><path d="M37 42C39.7614 42 42 39.7614 42 37C42 34.2386 39.7614 32 37 32C34.2386 32 32 34.2386 32 37C32 39.7614 34.2386 42 37 42Z" fill="none" stroke="#d0021b" stroke-width="3" stroke-linejoin="round"/></svg> |
| 90 | + </div> |
| 91 | + </PrefixIconTemplate> |
| 92 | + </Search> |
| 93 | + </div> |
| 94 | + </div> |
| 95 | + |
| 96 | +</DemoBlock> |
| 97 | + |
71 | 98 | <AttributeTable Items="@GetAttributes()" /> |
0 commit comments