Skip to content

Commit 074523b

Browse files
authored
[5.1] docs(chip): Document Selectable parameter (#1586)
* docs(chip): Document Selectable parameter * docs(chip): updated SelectedChanged event info
1 parent b7ea20f commit 074523b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/chip/events.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ The `OnRemove` event fires when the user clicks the remove icon of the Chip. The
2626

2727
## SelectedChanged
2828

29-
The `SelectedChanged` event fires every time the `Selected` parameter changes.
30-
29+
The `SelectedChanged` event fires when the `Selectable` parameter is `true` and the user clicks or taps the Chip to select/deselect it.
3130

3231
## Example
3332

components/chip/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ The table below lists the Chip parameters. Also check the [Chip API Reference](/
6464
| `Icon` | `object` | Use this parameter to render an icon in the chip. |
6565
| `Removable` | `bool` | Specifies if the chip can be removed by the user. If set to `true` a remove icon will be rendered on each available chip. |
6666
| `RemoveIcon` | `object` | Defines the icon that will be rendered if the `Removable` parameter is set to `true`. |
67+
| `Selectable` | `bool` <br/> (`true`) | Specifies if the Chip can be selected. Overrides the `Selected` parameter value.|
68+
| `Selected` | `bool` | Controls the selected state of the Chip. |
6769
| `TabIndex` | `int` | Maps to the `tabindex` attribute of the HTML element. You can use it to customize the order in which the inputs in your form focus with the `Tab` key. |
6870
| `Text` | `string` | The string that is rendered in the Chip. You can set the `Text` parameter even when [using a `RenderFragment` as a `ChildContent` of the Chip](#creating-blazor-chip). Otherwise `ChipRemoveEventArgs.Text` will be `null` in the [`OnRemove` handler]({%slug chip-events%})#onremove. |
6971

0 commit comments

Comments
 (0)