Nav: tabs, pills See documentation
Basic tabs
Create a basic tab navigation$tab = Html::navtab() $tab->item('#', 'First tab') $tab->item('#', 'Second tab') $tab->item('#', 'Last tab') echo $tab
Set tab state as
active
, or disabled
:
$tab->item('#', 'First tab')->active() // true or false // or $tab->item('#', 'First tab', array('active' => true)) --------- $tab->item('#', 'Last tab')->disabled() // true or false // or $tab->item('#', 'Last tab', array('disabled' => true))
Define tabs
type
as pills
or tabs
(default):
$tab = Html::navtab(array('type' => 'pills'))
Define
stacked
tabs to true
:
$tab = Html::navtab(array('stacked' => true))
Setup
icon
attributes:
$tab->item('#', 'First tab', array('icon' => 'user')) $tab->item('#', 'Second tab', array('icon' => 'cog')) $tab->item('#', 'third tab', array('icon' => 'inbox'))->active()