Vitex Software's Ease Twitter Bootstrap5

Tabs extends Container
in package

Tags
see
https://getbootstrap.com/docs/5.2/components/navs-tabs/#javascript-behavior
author

Vítězslav Dvořák info@vitexsoftware.cz

Table of Contents

$id  : string
Navbar Identification.
$activeTab  : string
$tabs  : array<string|int, mixed>
__construct()  : mixed
addAjaxTab()  : DivTag
Create new Dynamic Tab.
addTab()  : mixed
Add New Tab.
finalize()  : void
Assembling.
strToID()  : string
Convert Tab Name to ID.
tabBodies()  : DivTag
Tabs Bodies.
tabHandles()  : UlTag
Tabs Handles.

Properties

$id

Navbar Identification.

public string $id

$activeTab

private string $activeTab = ''

$tabs

private array<string|int, mixed> $tabs = []

Methods

__construct()

public __construct([array<string|int, mixed> $tabs = [] ][, array<string, string> $properties = [] ]) : mixed
Parameters
$tabs : array<string|int, mixed> = []
$properties : array<string, string> = []
Return values
mixed

addAjaxTab()

Create new Dynamic Tab.

public addAjaxTab(string $tabName, string $tabUrl[, bool $active = false ]) : DivTag
Parameters
$tabName : string

jméno a titulek tabu

$tabUrl : string

where to obtain tab content

$active : bool = false

Má být tento tab aktivní ?

Return values
DivTag

odkaz na vložený obsah

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() : void
Return values
void

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
Return values
UlTag

Search results