PHP Class TbTabs

See also:
Inheritance: extends CWidget
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$encodeLabel whether to encode item labels.
$events the Javascript event handlers.
$htmlOptions the HTML attributes for the widget container.
$placement the placement of the tabs. Valid values are 'above', 'below', 'left' and 'right'.
$stacked indicates whether to stack navigation items.
$tabContentHtmlOptions the HTML attributes for the widget tab content container.
$tabMenuHtmlOptions the HTML attributes for the widget tab content container.
$tabs the tab configuration.
$type the type of tabs to display. Defaults to 'tabs'. Valid values are 'tabs' and 'pills'. Please not that Javascript pills are not fully supported in Bootstrap yet!

Public Methods

Method Description
init ( ) ### .init()
run ( ) ### .run()

Protected Methods

Method Description
normalizeTabs ( array $tabs, array &$panes, integer &$i ) : array ### .normalizeTabs()

Method Details

init() public method

Initializes the widget.
public init ( )

normalizeTabs() protected method

Normalizes the tab configuration.
protected normalizeTabs ( array $tabs, array &$panes, integer &$i ) : array
$tabs array the tab configuration
$panes array a reference to the panes array
$i integer the current index
return array the items

run() public method

Run this widget.
public run ( )

Property Details

$encodeLabel public property

whether to encode item labels.
public $encodeLabel

$events public property

the Javascript event handlers.
public $events

$htmlOptions public property

the HTML attributes for the widget container.
public $htmlOptions

$placement public property

the placement of the tabs. Valid values are 'above', 'below', 'left' and 'right'.
public $placement

$stacked public property

indicates whether to stack navigation items.
public $stacked

$tabContentHtmlOptions public property

the HTML attributes for the widget tab content container.
public $tabContentHtmlOptions

$tabMenuHtmlOptions public property

the HTML attributes for the widget tab content container.
public $tabMenuHtmlOptions

$tabs public property

the tab configuration.
public $tabs

$type public property

the type of tabs to display. Defaults to 'tabs'. Valid values are 'tabs' and 'pills'. Please not that Javascript pills are not fully supported in Bootstrap yet!
See also: TbMenu::$type
public $type