Properties
Name | Type | Default | Description |
---|---|---|---|
Behavior | |||
ChildContent |
RenderFragment |
null | |
Disabled |
bool |
False | |
Icon |
string |
null | Icon to be used for this menu entry |
Click action | |||
AutoClose |
bool |
True | If set to false, clicking the menu item will keep the menu open |
ForceLoad |
bool |
False | |
Href |
string |
null | If set to a URL, clicking the button will open the referenced document. Use Target to specify where |
Target |
string |
null | |
Appearance | |||
IconColor |
Color |
Color.Inherit | The color of the icon. It supports the theme colors. |
IconSize |
Size |
Size.Medium | The Icon Size. |
Common | |||
Class |
string |
null | User class names, separated by space. |
Style |
string |
null | User styles, applied on top of the component's own classes and styles. |
Tag |
object |
null | Use Tag to attach any user data object to the component for your convenience. |
UserAttributes |
Dictionary<string, object> |
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag. | |
EventCallbacks
Name | Type | Description |
---|---|---|
OnClick |
EventCallback<MouseEventArgs> | Raised when the menu item is activated by either the mouse or touch. Won't be raised if Href is also set. |