/// <summary> /// Renders a Twitter Bootstrap breadcrumb component. /// </summary> /// <param name="helper">The Html helper.</param> /// <param name="actionLinks">The action links.</param> /// <param name="htmlAttributes">The HTML attributes.</param> /// <returns>returns a breadcrumb html string</returns> /// <example>@Html.Breadcrumb(links, new { @class="span5 offset1" })</example> public static MvcHtmlString Breadcrumb(this HtmlHelper helper, IEnumerable <MenuItem> actionLinks, object htmlAttributes = null) { BreadcrumbHelper breadcrumbHelper = new BreadcrumbHelper(helper, actionLinks, htmlAttributes); return(new MvcHtmlString(breadcrumbHelper.Render())); }
/// <summary> /// Renders a Twitter Bootstrap breadcrumb component. /// </summary> /// <param name="helper">The Html helper.</param> /// <param name="actionLinks">The action links.</param> /// <param name="htmlAttributes">The HTML attributes.</param> /// <returns>returns a breadcrumb html string</returns> /// <example>@Html.Breadcrumb(links, new { @class="span5 offset1" })</example> public static MvcHtmlString Breadcrumb(this HtmlHelper helper, IEnumerable<MenuItem> actionLinks, object htmlAttributes=null) { BreadcrumbHelper breadcrumbHelper = new BreadcrumbHelper(helper, actionLinks, htmlAttributes); return new MvcHtmlString(breadcrumbHelper.Render()); }