Yii menu with Bootstrap looks
Create a TbMenu widget and set its type to list:
$this->widget(
'booster.widgets.TbMenu',
array(
'type' => 'list',
'items' => array(
array(
'label' => 'List header',
'itemOptions' => array('class' => 'nav-header')
),
array(
'label' => 'Home',
'url' => '#',
'itemOptions' => array('class' => 'active')
),
array('label' => 'Library', 'url' => '#'),
array('label' => 'Applications', 'url' => '#'),
array(
'label' => 'Another list header',
'itemOptions' => array('class' => 'nav-header')
),
array('label' => 'Profile', 'url' => '#'),
array('label' => 'Settings', 'url' => '#'),
'',
array('label' => 'Help', 'url' => '#'),
)
)
);
Here's all configuration properties which you can set for TbMenu widget.
| Property | Description |
|---|---|
type name = default |
description |
Add a horizontal divider by creating an empty list item in the items array.