Examples
For examples and details on the usage of this component, visit the component demo page: Listbox<T>
Properties
Parameter | Type | Description | Default |
---|---|---|---|
ChildContent | RenderFragment |
Gets or sets content to be rendered inside the listbox. | - |
EmptyContent | RenderFragment |
Gets or sets content to be rendered inside the listbox when there is no items. | - |
Variant | ListboxVariant |
Gets or sets an appearance style of the listbox. | Solid |
Color | ThemeColor |
Gets or sets a color of the listbox. | Default |
DisabledItems | ICollection<T> |
Gets or sets the collection of items currently disabled in the listbox. | - |
Value | T |
Gets or sets an item currently selected in the listbox. | - |
Values | ICollection<T> |
Gets or sets the collection of items currently selected in the listbox. | - |
ValueChanged | EventCallback<T> |
Gets or sets the callback that is invoked when the selection of item in the listbox changes. | - |
ValuesChanged | EventCallback<ICollection<T>> |
Gets or sets the callback that is invoked when the selection of items in the listbox changes. | - |
Classes | ListboxSlots |
Gets or sets the CSS class names for the listbox slots. | - |
ItemClasses | ListboxItemSlots |
Gets or sets the CSS class names for the listbox items slots. | - |
As | string |
Gets or sets an HTML tag of the component. | - |
Class | string |
Gets or sets CSS class names that will be applied to the component. | - |
Style | string |
Gets or sets styles that will be applied to the component. | - |
AdditionalAttributes | IReadOnlyDictionary<string, object> |
Gets or sets a collection of additional attributes that will be applied to the component. | - |
ElementReference | ElementReference? |
Gets or sets the associated . May be if accessed before the component is rendered. | - |