BootstrapMvcHelpers.Bootstrap.Label C# (CSharp) Method

Label() public static method

Renders a Twitter Bootstrap label component
public static Label ( this helper, string text, BootstrapStatus status, object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
helper this The html helper.
text string The text.
status BootstrapStatus The label status.
htmlAttributes object The HTML attributes.
return System.Web.Mvc.MvcHtmlString
        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());
        }