C# Class BootstrapMvcHelpers.Bootstrap

The Bootstrap Html Helper class
Mostra file Open project: JCherryhomes/BootstrapMvcHelpers

Public Methods

Method Description
Badge ( this helper, string text, BootstrapStatus status, object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Renders a Twitter Bootstrap badge component

Breadcrumb ( this helper, IEnumerable actionLinks, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString

Renders a Twitter Bootstrap breadcrumb component.

Button ( this helper, string text, string action, string controller = "", ButtonStatus status = ButtonStatus.Default, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString

Renders a Twitter Bootstrap Button Component

Label ( this helper, string text, BootstrapStatus status, object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Renders a Twitter Bootstrap label component

MenuDropDown ( this helper, string name, IEnumerable selectList, string optionLabel = null, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString

Renders the menu drop down component.

MenuItem ( this helper, string text, string action, string controller = null ) : MenuItem

The menu item.

NavBar ( this helper, IEnumerable menuList, BrandPosition brandPosition = BrandPosition.None, NavBarDisplay displayType = NavBarDisplay.Normal, NavBarPosition navbarPosition = NavBarPosition.Default, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString

Renders a Twitter Bootstrap NavBar component.

Private Methods

Method Description
GetStatusStrategy ( BootstrapStatus status ) : IStatusStrategy

Gets the status strategy.

GetStatusStrategy ( ButtonStatus status ) : IStatusStrategy

Gets the button status strategy.

Method Details

Badge() public static method

Renders a Twitter Bootstrap badge component
public static Badge ( this helper, string text, BootstrapStatus status, object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
helper this The html helper.
text string The text.
status BootstrapStatus The status.
htmlAttributes object The HTML attributes.
return System.Web.Mvc.MvcHtmlString

Breadcrumb() public static method

Renders a Twitter Bootstrap breadcrumb component.
public static Breadcrumb ( this helper, IEnumerable actionLinks, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString
helper this The Html helper.
actionLinks IEnumerable The action links.
htmlAttributes object The HTML attributes.
return System.Web.Mvc.MvcHtmlString

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

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

MenuDropDown() public static method

Renders the menu drop down component.
public static MenuDropDown ( this helper, string name, IEnumerable selectList, string optionLabel = null, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString
helper this The helper.
name string The name.
selectList IEnumerable The select list.
optionLabel string The option label.
htmlAttributes object The HTML attributes.
return System.Web.Mvc.MvcHtmlString

MenuItem() public static method

The menu item.
public static MenuItem ( this helper, string text, string action, string controller = null ) : MenuItem
helper this The helper.
text string The text.
action string The action.
controller string The controller.
return MenuItem

NavBar() public static method

Renders a Twitter Bootstrap NavBar component.
public static NavBar ( this helper, IEnumerable menuList, BrandPosition brandPosition = BrandPosition.None, NavBarDisplay displayType = NavBarDisplay.Normal, NavBarPosition navbarPosition = NavBarPosition.Default, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString
helper this The HTML helper.
menuList IEnumerable The menu list.
brandPosition BrandPosition The brand position.
displayType NavBarDisplay
navbarPosition NavBarPosition
htmlAttributes object The HTML attributes.
return System.Web.Mvc.MvcHtmlString