C# Class Core.Web.Areas.Admin.Helpers.MenuExtension

Extends HtmlHelper functionality to render admin main menu.
Show file Open project: coreframework/Core-Framework

Public Methods

Method Description
RenderMenu ( this html, System.Web.Mvc.UrlHelper url, HttpContext context ) : System.Web.Mvc.MvcHtmlString

Renders admin area main menu.

Private Methods

Method Description
InitializeMenu ( HttpContext context, HtmlHelper html ) : IEnumerable>.Dictionary
RenderMenuItems ( HtmlHelper html, System.Web.Mvc.UrlHelper url, IEnumerable items ) : String
RenderSection ( HtmlHelper html, System.Web.Mvc.UrlHelper url, String title, IEnumerable items, bool isCurrent, int number ) : String
RenderSectionHeader ( System.Web.Mvc.UrlHelper url, String title, bool isCurrent, int number, IMenuItem item ) : String
RenderSectionsList ( HtmlHelper html, System.Web.Mvc.UrlHelper url, Dictionary items, String activeSection ) : String

Method Details

RenderMenu() public static method

Renders admin area main menu.
public static RenderMenu ( this html, System.Web.Mvc.UrlHelper url, HttpContext context ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
url System.Web.Mvc.UrlHelper The URL helper.
context System.Web.HttpContext The context.
return System.Web.Mvc.MvcHtmlString