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/chiplist/appearance.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,18 +18,20 @@ You can control the appearance of the chips in the ChipList by setting the follo
18
18
19
19
You can use all of them together to achieve the desired appearance. This article will explain their effect one by one.
20
20
21
-
Also see how to [set `ThemeColor`](slug:chip-appearance#themecolor) for each [chip in the ChipList](slug:chiplist-bound).
21
+
Also see how to set [`ThemeColor`](slug:chip-appearance#themecolor) and [`FillMode`](slug:chip-appearance#fillmode) separately for each [chip in the ChipList](slug:chiplist-bound).
22
22
23
23
## FillMode
24
24
25
-
The `FillMode` controls how the individual chip is filled. You can set it to a member of the `Telerik.Blazor.ThemeConstants.Chip.FillMode` class:
25
+
The `FillMode` controls how all the chips are filled. You can set it to a member of the `Telerik.Blazor.ThemeConstants.Chip.FillMode` class:
26
26
27
27
| Class members | Manual declarations |
28
28
|------------|--------|
29
29
|`Solid` <br /> default value|`solid`|
30
30
|`Outline`|`outline`|
31
31
32
-
>caption The built-in Fill modes
32
+
You can also set `FillMode` separately for each chip in the ChipList through a [property of the data item](slug:chiplist-bound).
33
+
34
+
>caption Using ChipList FillMode
33
35
34
36
````RAZOR
35
37
@* These are all built-in fill modes *@
@@ -88,7 +90,7 @@ The `Rounded` parameter applies the `border-radius` CSS rule to the chip to achi
88
90
|`Large`|`lg`|
89
91
|`Full`|`full`|
90
92
91
-
>caption The built-in values of the Rounded attribute
93
+
>caption Using ChipList Rounded
92
94
93
95
````RAZOR
94
96
@* The built-in rounded edges of the chip. *@
@@ -146,7 +148,7 @@ You can increase or decrease the size of the chips by setting the `Size` paramet
Copy file name to clipboardExpand all lines: components/chiplist/data-bind.md
+97-61Lines changed: 97 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,117 +16,153 @@ This article explains how to provide data to a ChipList component, and the prope
16
16
17
17
## Data Binding Features
18
18
19
-
The ChipList has features that map to properties in the component model class. The following example uses property names that will work automatically, with no additional ChipList configuration.
19
+
The ChipList has features that map to properties in the component model class.
20
+
21
+
### Schema
22
+
23
+
The table below lists the available data binding parameters for the Blazor ChipList component. Use them when your model property names are different from the default values.
24
+
25
+
| ChipList Parameter | Default Value | Description |
26
+
|----------|----------|----------|
27
+
|`DisabledField`|`"Disabled"`| Defines if the chip is disabled (non-clickable). |
28
+
|`FillModeField`|`"FillMode"`| Defines the [`FillMode` of each chip](slug:chip-appearance#fillmode). |
29
+
|`IconField`|`"Icon"`| The icon that renders in the chip. See [Icons](#icons) below. |
30
+
|`RemovableField`|`"Removable"`| Defines if the users can remove the chip. |
31
+
|`TextField`|`"Text"`| The text that renders in the chip. |
32
+
|`ThemeColorField`|`"ThemeColor"`| Defines the [`ThemeColor` of each chip](slug:chip-appearance#themecolor). |
33
+
34
+
#### Icons
35
+
36
+
The `IconField` model property can hold:
37
+
38
+
* A property of the static `SvgIcon` class;
39
+
* A member of the `FontIcon` enum;
40
+
* A `string` that is a CSS class for a custom icon.
public string FillMode { get; set; } = string.Empty;
97
+
public object? Icon { get; set; }
59
98
public bool Removable { get; set; }
99
+
public string Text { get; set; } = string.Empty;
60
100
public string ThemeColor { get; set; } = string.Empty;
61
101
}
62
102
}
63
103
````
64
104
65
-
### Data Binding Schema
105
+
### Custom Property Names
66
106
67
-
The table below lists the available data binding parameters for the Blazor ChipList component. Use them when your model property names are different from the default values.
68
-
69
-
| ChipList Parameter | Default Value | Description |
70
-
|----------|----------|----------|
71
-
|`DisabledField`|`"Disabled"`| Defines if the chip is disabled (non-clickable). |
72
-
|`IconField`|`"Icon"`| The icon that renders in the chip. |
73
-
|`TextField`|`"Text"`| The text that renders in the chip. |
74
-
|`RemovableField`|`"Removable"`| Defines if the users can remove the chip. |
75
-
|`ThemeColorField`|`"ThemeColor"`| Defines the [`ThemeColor` of each chip](slug:chip-appearance#themecolor). |
76
-
77
-
#### Icons
78
-
79
-
The `IconField` model property can hold:
80
-
81
-
* A property of the static `SvgIcon` class;
82
-
* A member of the `FontIcon` enum;
83
-
* A `string` that is a CSS class for a custom icon.
0 commit comments