I'm using http://yii-booster.clevertech.biz/components.html#navbar and I want to generate navbar. I have a problem with that because I have to use pull-right
css class on one of the items.
Why does htmlOptions
not work? How to use pull-right
on item "User"?
$this->widget('bootstrap.widgets.TbNavbar', array(
'brand' => CHtml::encode($this->pageTitle),
'brandUrl' => '#',
'collapse' => true,
'type' => 'inverse',
'items' => array(
array(
'class' => 'bootstrap.widgets.TbMenu',
'items' => array(
array('label'=>'Home', 'url'=>'#', 'active'=>true),
array('label'=>'Link', 'url'=>'#'),
array('label'=>'Link', 'url'=>'#'),
array('label'=>'User (895)', 'htmlOptions'=>array('class'=>'pull-right'),
'items'=>array(
array('label'=>'Support', 'url'=>'#'),
array('label'=>'Mailing', 'url'=>'#'),
array('label'=>'Sklep', 'url'=>'#'),
array('label'=>'Profile', 'url'=>'#'),
array('label'=>'Logout', 'url'=>'#'),
)
),
)
)
)
));