Blazorise Dropdown List API

Explore the Blazorise Dropdown List API reference for parameters, events, methods, and related types.

For examples and usage guidance, see the Dropdown 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 DropdownList.
Class—string

Custom classname for dropdown element.
ColornullColor

Specifies the color of toggle button.
DatanullIEnumerable<TItem>

Specifies the DropdownList data source.
DirectionDefaultDirection

Dropdown-menu slide direction.
Possible values:DefaultDownUpEndStart
Disabledfalsebool

If true, dropdown would not react to button click.
DropdownToggleSizeDefaultSize

Specifies the size of toggle button.
Possible values:DefaultExtraSmallSmallMediumLargeExtraLarge
ElementId—string

Specifies the dropdown element id.
EndAlignedfalsebool

If true, a dropdown menu will be aligned to the end.
Filterablefalsebool

Enebles filter text input on the top of the items list.
MaxMenuHeight—string

Sets the maximum height of the dropdown menu.
SelectionModeDefaultDropdownListSelectionMode

Specifies the DropdownList Selection Mode.
Possible values:DefaultCheckbox
Style—string

Custom styles for dropdown element.
TabIndexnullint?

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

Currently selected item value.
Virtualizefalsebool

Determines whether the dropdown will use the Virtualize functionality.

Events

EventType
DisabledItemFunc<TItem, bool>

Method used to get the disabled items from the supplied data source.
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