Examples
For examples and details on the usage of this component, visit the component demo page: DropdownMenu
Properties
Parameter | Type | Description | Default |
---|---|---|---|
Classes | DropdownMenuSlots |
Gets or sets the CSS class names for the dropdown menu slots. | - |
ItemClasses | DropdownItemSlots |
Gets or sets the CSS class names for the dropdown item slots. | - |
ChildContent | RenderFragment |
Gets or sets the content to render inside the menu. | - |
EmptyContent | RenderFragment |
Gets or sets the content to render when the menu is empty. | - |
Variant | MenuVariant |
Gets or sets the visual variant of the menu. | Solid |
Color | ThemeColor |
Gets or sets the theme color of the menu. | Default |
DisabledItems | ICollection<string> |
Gets or sets a collection of items that should be disabled in the menu. | - |
As | string |
Gets or sets an HTML tag of the component. | - |
Class | string |
Gets or sets CSS class names that will be applied to the component. | - |
Style | string |
Gets or sets styles that will be applied to the component. | - |
AdditionalAttributes | IReadOnlyDictionary<string, object> |
Gets or sets a collection of additional attributes that will be applied to the component. | - |
ElementReference | ElementReference? |
Gets or sets the associated . May be if accessed before the component is rendered. | - |