C# Класс BootstrapMvcHelpers.Bootstrap

The Bootstrap Html Helper class
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetStatusStrategy ( BootstrapStatus status ) : IStatusStrategy

Gets the status strategy.

GetStatusStrategy ( ButtonStatus status ) : IStatusStrategy

Gets the button status strategy.

Описание методов

Badge() публичный статический метод

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.
Результат System.Web.Mvc.MvcHtmlString

Breadcrumb() публичный статический метод

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.
Результат System.Web.Mvc.MvcHtmlString

Button() публичный статический метод

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.
Результат System.Web.Mvc.MvcHtmlString

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

MenuDropDown() публичный статический метод

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.
Результат System.Web.Mvc.MvcHtmlString

MenuItem() публичный статический метод

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.
Результат MenuItem

NavBar() публичный статический метод

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.
Результат System.Web.Mvc.MvcHtmlString