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 | Type | Default |
|---|---|---|---|
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. |
RenderFragment | null |
Class |
Custom classname for dropdown element. |
string | |
Color |
Specifies the color of toggle button. |
Color | null |
Data |
Specifies the DropdownList data source. |
IEnumerable<TItem> | null |
Direction |
Dropdown-menu slide direction. Possible values: |
Direction | Default |
Disabled |
If true, dropdown would not react to button click. |
bool | false |
DropdownToggleSize |
Specifies the size of toggle button. Possible values: |
Size | Default |
ElementId |
Specifies the dropdown element id. |
string | |
EndAligned |
If true, a dropdown menu will be aligned to the end. |
bool | false |
Filterable |
Enebles filter text input on the top of the items list. |
bool | false |
MaxMenuHeight |
Sets the maximum height of the dropdown menu. |
string | |
SelectionMode |
Specifies the DropdownList Selection Mode. Possible values: |
DropdownListSelectionMode | DropdownListSelectionMode.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. |
TValue | null |
Virtualize |
Determines whether the dropdown will use the Virtualize functionality. |
bool | false |
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 | Description | Return | Parameters |
|---|---|---|---|
Focus |
Sets focus on the input element, if it can be focused. | Task | bool scrollToElement |