PHP Class WPDKjQueryTabsView

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

Public Properties

Property 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.

Public Methods

Method 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 method

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.
return WPDKjQueryTabsView

addTab() public method

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

draw() public method

Display
public draw ( )

removeTab() public method

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 property

Set to true to display the border. Default is true
public bool $border
return boolean

$tabs public property

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

$vertical public property

Makes jQuery tabs vertical.
Since: 1.7.1
public bool $vertical
return boolean