Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.69 KB

Tabs.md

File metadata and controls

73 lines (46 loc) · 1.69 KB

◄ Back to index

Tabs icon Joomla\Content\Element\Tabs

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

Usage

$tabsElement = new Tabs( [ Panel[] $elements [, array $params ] ] );

or

$tabsElement = Tabs::from( Panel $data [, array $mapping [, array $params ] ] );

Properties

Property Type Description Required
elements Panel[] The child elements -

Elements

Get the child elements.

$elements = $tabsElement->getElements();

Parameters

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

Parameter List

Get an associative array with all parameters.

$params = $tabsElement->getParameters();

Single Parameter

Retrieve a single parameter. Default should be provided.

$id    = $tabsElement->getParameter( 'id' [, $default ] );
$class = $tabsElement->getParameter( 'class' [, $default ] );

Examples