C# Class BootstrapMvcHelpers.DropDownHelper

The DropDownHelper class
Inheritance: IBootstrapComponent
显示文件 Open project: JCherryhomes/BootstrapMvcHelpers Class Usage Examples

Public Methods

Method Description
DropDownHelper ( HtmlHelper helper, string name, IEnumerable selectList, string optionLabel, object htmlAttributes ) : System

Gets the string representation of the menu drop down control.

Render ( ) : string

Renders this instance.

Private Methods

Method Description
GetDropDownDivBuilder ( string name, object htmlAttributes ) : TagBuilder

Gets the drop down div builder.

GetDropDownTriggerBuilder ( string name, string optionLabel ) : TagBuilder

Gets the drop down trigger builder.

GetListItemBuilder ( MenuItem item ) : TagBuilder

Gets the list item builder.

GetTriggerCaretBuilder ( ) : TagBuilder

Gets the trigger caret builder.

GetUnorderedListBuilder ( ) : TagBuilder

Gets the unordered list builder.

Method Details

DropDownHelper() public method

Gets the string representation of the menu drop down control.
public DropDownHelper ( HtmlHelper helper, string name, IEnumerable selectList, string optionLabel, object htmlAttributes ) : System
helper HtmlHelper The helper.
name string The name.
selectList IEnumerable The select list.
optionLabel string The option label.
htmlAttributes object The HTML attributes.
return System

Render() public method

Renders this instance.
public Render ( ) : string
return string