MenuItemModel
The interface for describing items that can be passed to the items
property of the Menu as an alternative to passing them as children.
Name | Type | Default | Description |
---|---|---|---|
contentRender? |
|
A React functional or class component which is used for rendering content instead of the item children (see example). | |
cssClass? |
|
The additional CSS classes that will be rendered on the item (see example). | |
cssStyle? |
|
The CSS styles that will be rendered on the item (see example). | |
data? |
|
Represents any additional data that is associated with the Menu item. | |
disabled? |
|
Specifies if the item is disabled (see example). | |
icon? |
|
Specifies the name of the font icon that will be rendered for the item (see example). | |
items? |
|
Specifies the children of the item. | |
linkRender? |
|
A React functional or class component which is used for rendering the link of the item (see example). The item link is a part of the visual representation of the item which, by default, includes an arrow, icon, and text. | |
render? |
|
A React functional or class component which is used for rendering the innermost part of the Menu item (see example). By default, the innermost item part includes only the text for the item. | |
separator? |
|
Specifies if this is a separator item. If set to true only the | |
svgIcon? |
|
Specifies the SVG icon that will be rendered for the item (see example). | |
text? |
|
Specifies the item text (see example). | |
url? |
|
Specifies a URL which is rendered as a |