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

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

RenderFragmentnull
Class

Custom classname for dropdown element.

string
Color

Specifies the color of toggle button.

Colornull
Data

Specifies the DropdownList data source.

IEnumerable<TItem>null
Direction

Dropdown-menu slide direction.

Possible values:Default, Down, Up, End, Start

DirectionDefault
Disabled

If true, dropdown would not react to button click.

boolfalse
DropdownToggleSize

Specifies the size of toggle button.

Possible values:Default, ExtraSmall, Small, Medium, Large, ExtraLarge

SizeDefault
ElementId

Specifies the dropdown element id.

string
EndAligned

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

boolfalse
Filterable

Enebles filter text input on the top of the items list.

boolfalse
MaxMenuHeight

Sets the maximum height of the dropdown menu.

string
SelectionMode

Specifies the DropdownList Selection Mode.

Possible values:Default, Checkbox

DropdownListSelectionModeDropdownListSelectionMode.Default
Style

Custom styles for dropdown element.

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
Virtualize

Determines whether the dropdown will use the Virtualize functionality.

boolfalse

Events

Event Description Type
DisabledItem

Method used to get the disabled items from the supplied data source.

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