PHP Class WPDKjQueryTabsView

Author: =undo= ([email protected])
Inheritance: extends WPDKView
Afficher le fichier Open project: wpxtreme/wpdk Class Usage Examples

Méthodes publiques

Свойство Type Description
$border boolean Set to true to display the border. Default is true
$tabs array A key value pairs array tabs list, whew value is an instance of WPDKjQueryTab
$vertical boolean Makes jQuery tabs vertical.

Méthodes publiques

Méthode Description
__construct ( string $id, array $tabs = [], boolean $vertical = false ) : WPDKjQueryTabsView Create an instance of WPDKjQueryTabsView class
addTab ( WPDKjQueryTab $tab ) Add a single tab to the tabs list
draw ( ) Display
removeTab ( string | WPDKjQueryTab $tab ) Remove a tab from tabs list

Method Details

__construct() public méthode

Create an instance of WPDKjQueryTabsView class
public __construct ( string $id, array $tabs = [], boolean $vertical = false ) : WPDKjQueryTabsView
$id string The view ID
$tabs array Optional. A tabs list. Instances of WPDKjQueryTab class
$vertical boolean Optional. Set to TRUE in order to display vertical tab. Default is FALSE.
Résultat WPDKjQueryTabsView

addTab() public méthode

Add a single tab to the tabs list
public addTab ( WPDKjQueryTab $tab )
$tab WPDKjQueryTab An instance of WPDKjQueryTab

draw() public méthode

Display
public draw ( )

removeTab() public méthode

Remove a tab from tabs list
public removeTab ( string | WPDKjQueryTab $tab )
$tab string | WPDKjQueryTab An instance of WPDkjQueryTab class or its ID

Property Details

$border public_oe property

Set to true to display the border. Default is true
public bool $border
Résultat boolean

$tabs public_oe property

A key value pairs array tabs list, whew value is an instance of WPDKjQueryTab
public array $tabs
Résultat array

$vertical public_oe property

Makes jQuery tabs vertical.
Since: 1.7.1
public bool $vertical
Résultat boolean