MenuItemTagHelper

Example

Razor
<menu-item>
    <content></content>
    <sub-items></sub-items>
</menu-item>

ChildTags

Attributes

AttributeTypeDescription
actionString
areaString
controllerString
enabledBooleanSpecifies whether the item is initially enabled
encodedBooleanSpecifies whether the item's text is encoded
fragmentString
hostString
iconStringSpecifies custom class name for the icon displayed by the item
icon-classStringSpecifies custom class name for the icon displayed by the item
image-html-attributesObjectSpecifies the HTML attributes of the image
image-urlStringSpecifies the URL of the image displayed by the item
link-html-attributesObjectSpecifies the HTML attributes of the link
pageString
page-handlerString
protocolString
routeString
route-valuesIDictionary<String,String>
selectedBooleanSpecifies whether the item is initially selected
separatorBooleanSpecifies whether the item is a separator
textStringSpecifies the text displayed by the item
urlStringSpecifies the URL that the item links to
visibleBooleanSpecifies whether the item will be rendered
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support