\TbTabView

## Class TbTabView

Use TbTabView as replacement for Yii CTabView

Summary

Methods
Properties
Constants
init()
run()
$type
$placement
$tabs
$stacked
$justified
$encodeLabel
$events
$htmlOptions
$tabContentHtmlOptions
$tabMenuHtmlOptions
$viewData
PLACEMENT_ABOVE
PLACEMENT_BELOW
PLACEMENT_LEFT
PLACEMENT_RIGHT
normalizeTabs()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

PLACEMENT_ABOVE

PLACEMENT_ABOVE

PLACEMENT_BELOW

PLACEMENT_BELOW

PLACEMENT_LEFT

PLACEMENT_LEFT

PLACEMENT_RIGHT

PLACEMENT_RIGHT

Properties

$type

$type : string

Type

string — 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!

$placement

$placement : string

Type

string — the placement of the tabs. Valid values are 'above', 'below', 'left' and 'right'.

$tabs

$tabs : array

Type

array — the tab configuration.

$stacked

$stacked : boolean

Type

boolean — indicates whether to stack navigation items.

$justified

$justified : boolean

Type

boolean — indecates whether to justify navigation items

$encodeLabel

$encodeLabel : boolean

Type

boolean — whether to encode item labels.

$events

$events : string[]

Type

string[] — the Javascript event handlers.

$htmlOptions

$htmlOptions : array

Type

array — the HTML attributes for the widget container.

$tabContentHtmlOptions

$tabContentHtmlOptions : array

Type

array — the HTML attributes for the widget tab content container.

$tabMenuHtmlOptions

$tabMenuHtmlOptions : array

Type

array — the HTML attributes for the widget tab content container.

$viewData

$viewData : array

Type

array — Additional data submitted to the views

Methods

init()

init()

### .init()

Initializes the widget.

run()

run()

### .run()

Run this widget.

normalizeTabs()

normalizeTabs(array $tabs, array $panes, integer $i) : array

### .normalizeTabs()

Override from TbTabs

Parameters

array $tabs

the tab configuration

array $panes

a reference to the panes array

integer $i

the current index

Returns

array —

the items