PHP Class TbDropdown

See also: http://twitter.github.com/bootstrap/javascript.html#dropdowns
Inheritance: extends TbBaseMenu
Show file Open project: yinhe/yincart

Public Methods

Method Description
getDividerCssClass ( ) : string ### .getDividerCssClass()
getDropdownCssClass ( ) : string ### .getDropdownCssClass()
init ( ) ### .init()
isVertical ( ) : boolean ### .isVertical()

Protected Methods

Method Description
renderMenuItem ( array $item ) : string ### .renderMenuItem()

Method Details

getDividerCssClass() public method

Returns the divider CSS class.
public getDividerCssClass ( ) : string
return string the class name

getDropdownCssClass() public method

Returns the dropdown css class.
public getDropdownCssClass ( ) : string
return string the class name

init() public method

Initializes the widget.
public init ( )

isVertical() public method

Returns whether this is a vertical menu.
public isVertical ( ) : boolean
return boolean the result

renderMenuItem() protected method

Renders the content of a menu item. Note that the container and the sub-menus are not rendered here.
protected renderMenuItem ( array $item ) : string
$item array the menu item to be rendered. Please see {@link items} on what data might be in the item.
return string the rendered item