Class Section
Section renders Foundation sections, which are similar to tabs as a way to selectively show a single panel of content at a time. Sections replace Accordion, Tabs, Vertical Nav & Horizontal Nav.
For example:
echo Tabs::widget(array(
'items' => array(
array(
'label' => 'One',
'content' => 'Anim pariatur cliche...',
'active' => true
),
array(
'label' => 'Two',
'content' => 'Anim pariatur cliche...',
'options' => array('id' => 'myveryownID'),
),
),
));
- CWidget
-
foundation\widgets\base\Widget
-
foundation\widgets\Section
Namespace: foundation\widgets
Package: foundation\helpers
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at widgets/Section.php
Package: foundation\helpers
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at widgets/Section.php
Methods summary
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
Methods inherited from foundation\widgets\base\Widget
display(),
registerAssets(),
registerEvents(),
registerPlugin()
Magic methods summary
Properties summary
public
array
|
$items |
#
list of tabs in the tabs widget. Each array element represents a single tab with the following structure:
|
public
string
|
$style |
#
style of the sections. Defaults to 'auto', which means that will switch between tabs and accordion based on the resolution of the device. |
public
array
|
$pluginOptions |
#
the plugin options. The following is the list of supported options and their default values: ´´´php array( |