BootstrapMvcHelpers.Bootstrap.Button C# (CSharp) Method

Button() public static method

Renders a Twitter Bootstrap Button Component
public static Button ( this helper, string text, string action, string controller = "", ButtonStatus status = ButtonStatus.Default, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString
helper this The helper.
text string The text.
action string The action.
controller string The controller.
status ButtonStatus The status.
htmlAttributes object The HTML attributes.
return System.Web.Mvc.MvcHtmlString
        public static MvcHtmlString Button(this HtmlHelper helper, string text, string action, string controller="", ButtonStatus status = ButtonStatus.Default, object htmlAttributes = null)
        {
            ButtonHelper button = new ButtonHelper(helper, GetStatusStrategy(status), text, action, controller, status, htmlAttributes);
            return new MvcHtmlString(button.Render());
        }