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

ParameterDefaultType
AttributesnullDictionary<string, object>

Captures all the custom attribute that are not part of Blazorise component.
ChildContentnullRenderFragment

Specifies the content to be rendered inside this SelectList.
Class—string

Custom css class-names.
DatanullIEnumerable<TItem>

Specifies the select data source.
DefaultItemDisabledfalsebool

If true, disables the default item.
DefaultItemHiddenfalsebool

If true, disables the default item.
DefaultItemText—string

Display text of the default select item.
DefaultItemValuenullobject

Value of the default select item.
Disabledfalsebool

Add the disabled boolean attribute on an select to prevent user interactions and make it appear lighter.
ElementId—string

Specifies the select element id.
FeedbacknullRenderFragment

Placeholder for validation messages.
MaxVisibleItemsnullint?

Specifies how many options should be shown at once.
Multiplefalsebool

Specifies that multiple items can be selected.
SizenullSize?

Size of a select field.
Style—string

Custom styles.
TabIndexnullint?

If defined, indicates that its element can be focused and can participates in sequential keyboard navigation.
ValuenullTValue

Currently selected item value.
ValueExpressionnullExpression<Func<TValue>>

Specifies an expression that identifies the selected value.

Events

EventType
ItemDisabledFunc<TItem, bool>

Method used to determine if an item should be disabled.
TextFieldFunc<TItem, string>

Method used to get the display field from the supplied data source.
ValueChangedEventCallback<TValue>

Occurs after the selected value has changed.
ValueFieldFunc<TItem, object>

Method used to get the value field from the supplied data source.

Methods

MethodReturnParameters
FocusTaskbool scrollToElement

Sets focus on the input element, if it can be focused.
On this page