Tabs
extends Container
in package
Tags
Table of Contents
- $activeTab : string
- $tabs : array<string|int, mixed>
- __construct() : mixed
- addTab() : mixed
- Add New Tab
- finalize() : mixed
- Assembling
- strToID() : string
- Convert Tab Name to ID
- tabBodies() : DivTag
- Tabs Bodies
- tabHandles() : UlTag
- Tabs Handles
Properties
$activeTab
private
string
$activeTab
= ''
$tabs
private
array<string|int, mixed>
$tabs
= []
Methods
__construct()
public
__construct([array<string|int, mixed> $tabs = [] ][, array<string|int, mixed> $properties = [] ]) : mixed
Parameters
- $tabs : array<string|int, mixed> = []
- $properties : array<string|int, mixed> = []
Return values
mixed —addTab()
Add New Tab
public
addTab(string $label, mixed $content[, bool $active = false ]) : mixed
Parameters
- $label : string
- $content : mixed
-
to render in tab body
- $active : bool = false
-
add as active tab
Return values
mixed —finalize()
Assembling
public
finalize() : mixed
Return values
mixed —strToID()
Convert Tab Name to ID
public
static strToID(string $tabLabel) : string
Parameters
- $tabLabel : string
Return values
string —tabBodies()
Tabs Bodies
public
tabBodies() : DivTag
Return values
DivTag —tabHandles()
Tabs Handles
public
tabHandles() : UlTag