Overview

Packages

  • bootstrap
    • behaviors
    • components
    • form
    • gii
    • helpers
    • widgets

Classes

  • TbActiveForm
  • TbAffix
  • TbAlert
  • TbBreadcrumb
  • TbButtonColumn
  • TbCollapse
  • TbDataColumn
  • TbDetailView
  • TbGridView
  • TbHeroUnit
  • TbListView
  • TbModal
  • TbNav
  • TbNavbar
  • TbPager
  • TbScrollspy
  • TbTabs
  • TbThumbnails
  • TbTypeAhead
  • Overview
  • Package
  • Class
  • Tree

Class TbTabs

Boostrap tabs widget.

CWidget
Extended by TbTabs
Package: bootstrap\widgets
Copyright: Copyright © Christoffer Niska 2013-
License: New BSD License
Author: Antonio Ramirez <ramirez.cobos@gmail.com>
Located at widgets/TbTabs.php
Methods summary
public
# init( )

Widget's initialization method

Widget's initialization method

public
# initEvents( )

Initialize events if any

Initialize events if any

public
# run( )

Widget's run method

Widget's run method

protected
# normalizeTabs( array $tabs )

Normalizes the tab configuration.

Normalizes the tab configuration.

Parameters

$tabs
array
$tabs a reference to the tabs tab configuration.
public
# registerClientScript( )

Registers necessary client scripts.

Registers necessary client scripts.

Properties summary
public string $type TbHtml::NAV_TYPE_TABS
#

the type of tabs to display. Valid values are 'tabs' and 'pills' (defaults to 'tabs').

the type of tabs to display. Valid values are 'tabs' and 'pills' (defaults to 'tabs').

See

TbHtml::$navStyles
public string $placement
#

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

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

See

TbHtml::tabPlacements
public array $tabs array()
#

the tab configuration.

the tab configuration.

public array $viewData
#

additional data submitted to the views.

additional data submitted to the views.

public string $onShow
#

a javascript function that This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.

a javascript function that This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.

public string $onShown
#

a javascript function that fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.

a javascript function that fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.

public array $htmlOptions array()
#

the HTML attributes for the widget container.

the HTML attributes for the widget container.

protected string[] $events array()
#

the Javascript event handlers.

the Javascript event handlers.

Yiistrap API documentation generated by ApiGen 2.8.0