/// <summary> /// Renders a Twitter Bootstrap label component /// </summary> /// <param name="helper">The html helper.</param> /// <param name="text">The text.</param> /// <param name="status">The label status.</param> /// <param name="htmlAttributes">The HTML attributes.</param> /// <returns>Returns a label html string</returns> public static MvcHtmlString Label(this HtmlHelper helper, string text, BootstrapStatus status, object htmlAttributes) { LabelHelper labelHelper = new LabelHelper(GetStatusStrategy(status), text, status, htmlAttributes); return(MvcHtmlString.Create(labelHelper.Render())); }
/// <summary> /// Renders a Twitter Bootstrap label component /// </summary> /// <param name="helper">The html helper.</param> /// <param name="text">The text.</param> /// <param name="status">The label status.</param> /// <param name="htmlAttributes">The HTML attributes.</param> /// <returns>Returns a label html string</returns> public static MvcHtmlString Label(this HtmlHelper helper, string text, BootstrapStatus status, object htmlAttributes) { LabelHelper labelHelper = new LabelHelper(GetStatusStrategy(status), text, status, htmlAttributes); return new MvcHtmlString(labelHelper.Render()); }