You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/multiselect/templates.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ position: 5
10
10
11
11
# MultiSelect Templates
12
12
13
-
The AutoComplete component allows you to change what is rendered in its items, header and footer through templates.
13
+
The MultiSelect component allows you to change what is rendered in its items, header and footer through templates.
14
14
15
-
The examples below show how to use inner tags to set the templates. You can also do this through [RenderFragment](https://blazor.net/api/Microsoft.AspNetCore.Blazor.RenderFragment.html) objects that you can pass to the properties of the AutoComplete in its main tag.
15
+
The examples below show how to use inner tags to set the templates. You can also do this through [RenderFragment](https://blazor.net/api/Microsoft.AspNetCore.Blazor.RenderFragment.html) objects that you can pass to the properties of the MultiSelect in its main tag.
16
16
17
17
List of the available templates:
18
18
@@ -30,52 +30,52 @@ The Item template determines how the individual items are rendered in the dropdo
30
30
````CSHTML
31
31
@* Define what renders for the items in the dropdown *@
32
32
33
-
<TelerikAutoComplete Data="@Suggestions" @bind-Value="@Role" Placeholder="Write your position">
33
+
<TelerikMultiSelect Data="@Roles" @bind-Value="@TheValues" Placeholder="Write the roles you need">
34
34
<ItemTemplate>
35
-
Are you a <strong>@context</strong>
35
+
Maybe a <strong>@context</strong>
36
36
</ItemTemplate>
37
-
</TelerikAutoComplete>
37
+
</TelerikMultiSelect>
38
38
39
39
@code{
40
-
string Role { get; set; }
40
+
List<string> TheValues { get; set; } = new List<string>();
41
41
42
-
List<string> Suggestions { get; set; } = new List<string> {
42
+
List<string> Roles { get; set; } = new List<string> {
The header is content that you can place above the list of items inside the dropdown element. It is always visible when the combobox is expanded. By default it is empty.
54
+
The header is content that you can place above the list of items inside the dropdown element. It is always visible when the multiselect is expanded. By default it is empty.
55
55
56
56
>caption Header Example
57
57
58
58
````CSHTML
59
59
@* Define a header in the dropdown *@
60
60
61
-
<TelerikAutoComplete Data="@Suggestions" @bind-Value="@Role" Placeholder="Write your position">
61
+
<TelerikMultiSelect Data="@Roles" @bind-Value="@TheValues" Placeholder="Write the roles you need">
62
62
<HeaderTemplate>
63
-
<strong>Write your own if you don't see it in the list</strong>
63
+
<strong>Select one or more from the list</strong>
64
64
</HeaderTemplate>
65
-
</TelerikAutoComplete>
65
+
</TelerikMultiSelect>
66
66
67
67
@code{
68
-
string Role { get; set; }
68
+
List<string> TheValues { get; set; } = new List<string>();
69
69
70
-
List<string> Suggestions { get; set; } = new List<string> {
70
+
List<string> Roles { get; set; } = new List<string> {
0 commit comments