Blazorise Select List API
Explore the Blazorise Select List API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Select List documentation.
API
Parameters
| Parameter | Default | Type |
|---|---|---|
Attributes | null | Dictionary<string, object> |
Captures all the custom attribute that are not part of Blazorise component. | ||
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this SelectList. | ||
Class | — | string |
Custom css class-names. | ||
Data | null | IEnumerable<TItem> |
Specifies the select data source. | ||
DefaultItemDisabled | false | bool |
If true, disables the default item. | ||
DefaultItemHidden | false | bool |
If true, disables the default item. | ||
DefaultItemText | — | string |
Display text of the default select item. | ||
DefaultItemValue | null | object |
Value of the default select item. | ||
Disabled | false | bool |
Add the disabled boolean attribute on an select to prevent user interactions and make it appear lighter. | ||
ElementId | — | string |
Specifies the select element id. | ||
Feedback | null | RenderFragment |
Placeholder for validation messages. | ||
MaxVisibleItems | null | int? |
Specifies how many options should be shown at once. | ||
Multiple | false | bool |
Specifies that multiple items can be selected. | ||
Size | null | Size? |
Size of a select field. | ||
Style | — | string |
Custom styles. | ||
TabIndex | null | int? |
If defined, indicates that its element can be focused and can participates in sequential keyboard navigation. | ||
Value | null | TValue |
Currently selected item value. | ||
ValueExpression | null | Expression<Func<TValue>> |
Specifies an expression that identifies the selected value. | ||
Events
| Event | Type |
|---|---|
ItemDisabled | Func<TItem, bool> |
Method used to determine if an item should be disabled. | |
TextField | Func<TItem, string> |
Method used to get the display field from the supplied data source. | |
ValueChanged | EventCallback<TValue> |
Occurs after the selected value has changed. | |
ValueField | Func<TItem, object> |
Method used to get the value field from the supplied data source. | |
Methods
| Method | Return | Parameters |
|---|---|---|
Focus | Task | bool scrollToElement |
Sets focus on the input element, if it can be focused.
| ||