Properties
Name | Type | Default | Description |
---|---|---|---|
Behavior | |||
AllClosable |
bool |
False | Will make all chips closable. |
ChildContent |
RenderFragment |
null | Child content of component. |
Comparer |
IEqualityComparer<object> |
null | The Comparer to use for comparing selected values internally. |
Mandatory |
bool |
False | Will not allow to deselect the selected chip in single selection mode. |
MultiSelection |
bool |
False | Allows to select more than one chip. |
ReadOnly |
bool |
False | Will make all chips read only. |
SelectedChip |
MudChip |
null | The currently selected chip in Choice mode |
SelectedChips |
MudChip[] |
The currently selected chips in Filter mode | |
SelectedValues |
ICollection<object> |
The current selected value. Note: make the list Clickable for item selection to work. | |
Appearance | |||
Filter |
bool |
False | Will show a check-mark for the selected components. |
Common | |||
Class |
string |
null | User class names, separated by space. |
Style |
string |
null | User styles, applied on top of the component's own classes and styles. |
Tag |
object |
null | Use Tag to attach any user data object to the component for your convenience. |
UserAttributes |
Dictionary<string, object> |
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag. | |
EventCallbacks
Name | Type | Description |
---|---|---|
OnClose |
EventCallback<MudChip> | Called when a Chip was deleted (by click on the close icon) |
SelectedChipChanged |
EventCallback<MudChip> | Called when the selected chip changes, in Choice mode |
SelectedChipsChanged |
EventCallback<MudChip[]> | Called when the selection changed, in Filter mode |
SelectedValuesChanged |
EventCallback<ICollection<object>> | Called whenever the selection changed |
Methods
Name | Parameters | Return | Description |
---|---|---|---|
Dispose() |
|||
Task OnChipDeletedAsync(MudChip chip) |
MudChip chip |
Task |