A tabbed document interface (TDI) or Tab is a graphical control element that allows multiple documents or panels to be contained within a single window, using tabs as a navigational widget for switching between sets of documents. It is an interface style most commonly associated with web browsers, web applications, text editors, and preference panes.
GUI tabs are modeled after traditional card tabs inserted in paper files or card indexes (in keeping with the desktop metaphor).
From Wikipedia
$tabsElement = new Tabs( [ Panel[] $elements [, array $params ] ] );
or
$tabsElement = Tabs::from( Panel $data [, array $mapping [, array $params ] ] );
Property | Type | Description | Required |
---|---|---|---|
elements | Panel[] | The child elements | - |
Get the child elements.
$elements = $tabsElement->getElements();
Parameters are optional settings for the presentation. All elements can have 'id' and 'class' parameters; other depend on environment and/or renderer.
Parameter | Type | Description |
---|---|---|
id | string | The ID of the element |
class | string | CSS class |
Get an associative array with all parameters.
$params = $tabsElement->getParameters();
Retrieve a single parameter. Default should be provided.
$id = $tabsElement->getParameter( 'id' [, $default ] );
$class = $tabsElement->getParameter( 'class' [, $default ] );