Nucleus .Net Core CMS

HtmlHelpers.MenuHtmlHelper Class

Namespace: Nucleus.ViewFeatures.HtmlHelpers
Assembly: Nucleus.ViewFeatures.dll
Html helper used to render a menu.
Menu (IHtmlHelper htmlHelper, Int32 maxLevels, Object htmlAttributes)
Displays the site's menu structure.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
maxLevels Int32
htmlAttributes Object
Menu (IHtmlHelper htmlHelper, MenuStyles menuStyle, Int32 maxLevels, Object htmlAttributes)
Displays the site's menu structure.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
menuStyle Nucleus.ViewFeatures.HtmlContent.Menu.MenuStyles
maxLevels Int32
htmlAttributes Object
Menu (IHtmlHelper htmlHelper, MenuStyles menuStyle, String menuClass, Int32 maxLevels, Boolean useName, Object htmlAttributes)
Displays the site's menu structure.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
menuStyle Nucleus.ViewFeatures.HtmlContent.Menu.MenuStyles
menuClass String
maxLevels Int32
useName Boolean
htmlAttributes Object
Menu (IHtmlHelper htmlHelper, MenuStyles menuStyle, RootPageTypes rootPageType, Int32 maxLevels, Object htmlAttributes)
Displays the site's menu structure.
Menu (IHtmlHelper htmlHelper, MenuStyles menuStyle, RootPageTypes rootPageType, Guid rootPageId, Int32 maxLevels, Object htmlAttributes)
Displays the site's menu structure.
Menu (IHtmlHelper htmlHelper, MenuStyles menuStyle, RootPageTypes rootPageType, Guid rootPageId, Boolean hideEmptyMenu, Int32 maxLevels, Object htmlAttributes)
Displays the site's menu structure.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
menuStyle Nucleus.ViewFeatures.HtmlContent.Menu.MenuStyles
rootPageType Nucleus.ViewFeatures.HtmlContent.Menu.RootPageTypes
rootPageId Guid
hideEmptyMenu Boolean
maxLevels Int32
htmlAttributes Object
Menu (IHtmlHelper htmlHelper, MenuStyles menuStyle, String menuClass, RootPageTypes rootPageType, Guid rootPageId, Boolean hideEmptyMenu, Int32 maxLevels, Object htmlAttributes)
Displays the site's menu structure.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
menuStyle Nucleus.ViewFeatures.HtmlContent.Menu.MenuStyles
menuClass String

If a non-blank value is specified, the value is added to the css class for the top-level div rendered for the menu, and the default "navbar-light bg-light" classes are not applied.

rootPageType Nucleus.ViewFeatures.HtmlContent.Menu.RootPageTypes
rootPageId Guid
hideEmptyMenu Boolean
maxLevels Int32
htmlAttributes Object
Menu (IHtmlHelper htmlHelper, MenuStyles menuStyle, String menuClass, RootPageTypes rootPageType, Guid rootPageId, Boolean hideEmptyMenu, Int32 maxLevels, Boolean useName, Object htmlAttributes)
Displays the site's menu structure.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
menuStyle Nucleus.ViewFeatures.HtmlContent.Menu.MenuStyles
menuClass String

If a non-blank value is specified, the value is added to the css class for the top-level div rendered for the menu, and the default "navbar-light bg-light" classes are not applied.

rootPageType Nucleus.ViewFeatures.HtmlContent.Menu.RootPageTypes
rootPageId Guid
hideEmptyMenu Boolean
maxLevels Int32
useName Boolean
htmlAttributes Object