Can someone please help me. I am new to yii/bootstrap and I’ve been messing with this menu for awhile and just can’t seem to figure it out.
My problem is that when you shrink the screen (less than the 940px) the menu items disappear and the drop down button doesn’t appear. Is there a different way to do this without arrays?
I’m using version 1.1.0 of this extension.
Here is part of my code
<!--/top menu start-->
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="toggle-bar"></span>
<span class="toggle-bar"></span>
<span class="toggle-bar"></span>
</a>
<a class="brand" href="<?php echo $this->createAbsoluteUrl('//'); ?>"><?php echo CHtml::encode(Yii::app()->name); ?></a>
<div class="nav-collapse">
<?php $this->widget('bootstrap.widgets.TbNavbar', array(
'type'=>'inverse', // null or 'inverse'
'collapse'=>true, // requires bootstrap-responsive.css
'items'=>array(
array(
'class'=>'bootstrap.widgets.TbMenu',
'items'=>array(
array('label'=>'Assets', 'url'=>'#', 'items'=>array(
array('label'=>'Check In/Out Assets', 'icon'=>'barcode', 'url'=>'#'),
array('label'=>'List Assets', 'icon'=>'list', 'url'=>'#'),
array('label'=>'Edit Assets', 'icon'=>'edit', 'url'=>'#'),
'---',
array('label'=>'Create Asset Model', 'url'=>'#'),
array('label'=>'Create Assets', 'icon'=>'plus-sign','url'=>'#'),
array('label'=>'Move Assets', 'icon'=>'share-alt', 'url'=>'#'),
'---',
array('label'=>''),
array('label'=>'Reserve Asstes', 'icon'=>'ok-sign', 'url'=>'#'),
)),
array('label'=>'Inventory', 'url'=>'#', 'items'=>array(
array('label'=>'List Inventory', 'icon'=>'list', 'url'=>'#'),
array('label'=>'Edit Inventory', 'icon'=>'edit', 'url'=>'#'),
'---',
array('label'=>'Move Inventory', 'url'=>'#'),
array('label'=>'Take Out Inventory', 'icon'=>'share-alt','url'=>'#'),
array('label'=>'Restock Inventory', 'icon'=>'refresh','url'=>'#'),
)),
)); ?>
</div>
</div>
</div>
</div>
Also, how would I link to a different icon other than the default bootstrap? Say in path my_app_name > images > icons > icon_name
big thank you in advance!!!!