MenuItemTagHelper
Example
Razor
<menu-item>
<content></content>
<sub-items></sub-items>
</menu-item>
ChildTags
| Tag Name | Details |
|---|---|
| content | MenuItemContentTagHelper |
| sub-items | MenuItemSubItemsTagHelper |
Attributes
| Attribute | Type | Description |
|---|---|---|
| asp-action | String | |
| asp-area | String | |
| asp-controller | String | |
| enabled | Boolean | Specifies whether the item is initially enabled |
| encoded | Boolean | Specifies whether the item's text is encoded |
| asp-fragment | String | |
| asp-host | String | |
| icon | String | Specifies the icon position for the item. |
| icon-class | String | Specifies custom class name for the icon displayed by the item |
| icon-position | IconPosition | Specifies the icon position for the item. |
| image-html-attributes | Object | Specifies the HTML attributes of the image |
| image-url | String | Specifies the URL of the image displayed by the item |
| link-html-attributes | Object | Specifies the HTML attributes of the link |
| asp-page | String | |
| asp-page-handler | String | |
| asp-protocol | String | |
| asp-route | String | |
| asp-all-route-data | IDictionary<String,String> | |
| selected | Boolean | Specifies whether the item is initially selected |
| separator | Boolean | Specifies whether the item is a separator |
| text | String | Specifies the text displayed by the item |
| url | String | Specifies the URL that the item links to |
| visible | Boolean | Specifies whether the item will be rendered |