Examples
For examples and details on the usage of this component, visit the component demo page: Listbox<TValue>
Properties
Parameter | Type | Description | Default |
---|---|---|---|
TextValue | string |
Gets or sets a text representation of the select item value. | - |
ChildContent | RenderFragment |
Gets or sets content to be rendered inside the listbox item. | - |
StartContent | RenderFragment |
Gets or sets content to be rendered at the start of the listbox item. | - |
EndContent | RenderFragment |
Gets or sets content to be rendered at the end of the listbox item. | - |
Value | T |
Gets or sets a value representing the listbox item. | - |
Description | string |
Gets or sets a description of the listbox item. | - |
Variant | ListboxVariant |
Gets or sets an appearance style of the listbox item. | Solid |
Color | ThemeColor |
Gets or sets a color of the listbox item. | Default |
Disabled | bool |
Gets or sets a value indicating whether the listbox item is disabled. | false |
OnClick | EventCallback<MouseEventArgs> |
Gets or sets a callback that is fired whenever the listbox item is clicked. | - |
Classes | ListboxItemSlots |
Gets or sets the CSS class names for the listbox item 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. | - |