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