yii - Customizing bootstrap.widgets.TbMenu -


i'm using yii booster , i'm trying make list this, same id's , class's

<div id="sidebar-nav">         <ul id="dashboard-menu">             <li class="active">                 <div class="pointer">                     <div class="arrow"></div>                     <div class="arrow_border"></div>                 </div>                 <a href="index.html">                     <i class="icon-home"></i>                     <span>home</span>                 </a>             </li>                         <li>                 <a href="chart-showcase.html">                     <i class="icon-signal"></i>                     <span>charts</span>                 </a>             </li>             <li>                 <a class="dropdown-toggle" href="#">                     <i class="icon-group"></i>                     <span>users</span>                     <i class="icon-chevron-down"></i>                 </a>                 <ul class="submenu">                     <li><a href="user-list.html">user list</a></li>                     <li><a href="new-user.html">new user form</a></li>                     <li><a href="user-profile.html">user profile</a></li>                 </ul>             </li>         </ul>     </div> 

so far i've done this.. , not sure how submenu users too. ideas on how submenu , add proper class , id's?

<div id="sidebar-nav">     $this->widget('bootstrap.widgets.tbmenu', array(             'type' => 'list',             'items' => array(array('label' => 'home', 'icon' => 'home', 'url' => array('default/index#'), 'active' => true),                 array('label' => 'charts', 'icon' => 'icon-signal', 'url' => array('demo1')),                 array('label' => 'users', 'icon' => 'icon-group', 'url' => array('demo2')),         )); </div> 

also, noticed yii adds id html like

<input id="yw0" class="nav nav-list" /> 

is there way remove this?

thanks in advance

this show in right side of navigation icon , login logout option ... , working fine .....

        array(             'class' => 'bootstrap.widgets.tbmenu',             'htmloptions' => array('class' => 'pull-right'),             'items' => array(                 array('label' => 'welcome..' . yii::app()->user->name . '', 'url' => '#','icon' => 'icon-user icon-white'),                 array('label' => '', 'url' => '#', 'items' => array(                         array('label' => 'login', 'url' => array('/site/login'), 'visible' => yii::app()->user->isguest),                         array('label' => 'logout', 'url' => array('/site/logout'), 'visible' => !yii::app()->user->isguest, 'itemoptions' => array(                                 'class' => ''                             )),                     )),             ),         ), 

thanks http://about.me/sudeep_dk


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -