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 TypeDefault
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.

RenderFragmentnull
Class

Custom css class-names.

string
Data

Specifies the select data source.

IEnumerable<TItem>null
DefaultItemDisabled

If true, disables the default item.

boolfalse
DefaultItemHidden

If true, disables the default item.

boolfalse
DefaultItemText

Display text of the default select item.

string
DefaultItemValue

Value of the default select item.

objectnull
Disabled

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

boolfalse
ElementId

Specifies the select element id.

string
Feedback

Placeholder for validation messages.

RenderFragmentnull
MaxVisibleItems

Specifies how many options should be shown at once.

int?null
Multiple

Specifies that multiple items can be selected.

boolfalse
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.

TValuenull
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 DescriptionReturnParameters
Focus Sets focus on the input element, if it can be focused. Taskbool scrollToElement
On this page