Tabs
extends Container
in package
Tags
Table of Contents
Properties
- $activeTab : string
- $tabs : array<string|int, mixed>
Methods
- __construct() : mixed
- addTab() : mixed
- Add New Tab.
- finalize() : void
- 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, Embedable> $tabs = [] ][, array<string, string> $properties = [] ]) : mixed
Parameters
- $tabs : array<string, Embedable> = []
- $properties : array<string, string> = []
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
finalize()
Assembling.
public
finalize() : void
strToID()
Convert Tab Name to ID.
public
static strToID(string $tabLabel) : string
Parameters
- $tabLabel : string
Return values
stringtabBodies()
Tabs Bodies.
public
tabBodies() : DivTag
Return values
DivTagtabHandles()
Tabs Handles.
public
tabHandles() : UlTag