BootstrapMvcHelpers.Bootstrap.Label C# (CSharp) 메소드

Label() 공개 정적인 메소드

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.
리턴 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());
        }