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 | Default | Type |
|---|---|---|
Attributes | null | Dictionary<string, object> |
Captures all the custom attribute that are not part of Blazorise component. | ||
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this DropdownList. | ||
Class | — | string |
Custom classname for dropdown element. | ||
Color | null | Color |
Specifies the color of toggle button. | ||
Data | null | IEnumerable<TItem> |
Specifies the DropdownList data source. | ||
Direction | Default | Direction |
Dropdown-menu slide direction. Possible values: DefaultDownUpEndStart | ||
Disabled | false | bool |
If true, dropdown would not react to button click. | ||
DropdownToggleSize | Default | Size |
Specifies the size of toggle button. Possible values: DefaultExtraSmallSmallMediumLargeExtraLarge | ||
ElementId | — | string |
Specifies the dropdown element id. | ||
EndAligned | false | bool |
If true, a dropdown menu will be aligned to the end. | ||
Filterable | false | bool |
Enebles filter text input on the top of the items list. | ||
MaxMenuHeight | — | string |
Sets the maximum height of the dropdown menu. | ||
SelectionMode | Default | DropdownListSelectionMode |
Specifies the DropdownList Selection Mode. Possible values: DefaultCheckbox | ||
Style | — | string |
Custom styles for dropdown element. | ||
TabIndex | null | int? |
If defined, indicates that its element can be focused and can participates in sequential keyboard navigation. | ||
Value | null | TValue |
Currently selected item value. | ||
Virtualize | false | bool |
Determines whether the dropdown will use the Virtualize functionality. | ||
Events
| Event | Type |
|---|---|
DisabledItem | Func<TItem, bool> |
Method used to get the disabled items from the supplied data source. | |
TextField | Func<TItem, string> |
Method used to get the display field from the supplied data source. | |
ValueChanged | EventCallback<TValue> |
Occurs after the selected value has changed. | |
ValueField | Func<TItem, object> |
Method used to get the value field from the supplied data source. | |
Methods
| Method | Return | Parameters |
|---|---|---|
Focus | Task | bool scrollToElement |
Sets focus on the input element, if it can be focused.
| ||