stackedPills() public static method

Generates a stacked pills navigation.
public static stackedPills ( array $items, array $htmlOptions = [] ) : string
$items array the menu items.
$htmlOptions array additional HTML attributes.
return string the generated menu.
<?php

echo TbHtml::stackedPills(MenuItem::model()->findByPk($id)->getItems());
Example #2
0
 public function testStackedPills()
 {
     $I = $this->codeGuy;
     $html = TbHtml::stackedPills(array(array('label' => 'Link', 'url' => '#')));
     $nav = $I->createNode($html, 'ul.nav');
     $I->seeNodeCssClass($nav, 'nav-pills nav-stacked');
 }
Example #3
0
?>
   </div>

   <pre class="prettyprint linenums">
&lt;?php echo TbHtml::stackedTabs(array(
    array('label' => 'Home', 'url' => '#', 'active' => true),
    array('label' => 'Profile', 'url' => '#',),
    array('label' => 'Messages', 'url' => '#',),
)); ?>
</pre>

   <h3>Stacked pills</h3>

   <div class="bs-docs-example">
      <?php 
echo TbHtml::stackedPills(array(array('label' => 'Home', 'url' => '#', 'active' => true), array('label' => 'Profile', 'url' => '#'), array('label' => 'Messages', 'url' => '#')));
?>
   </div>

   <pre class="prettyprint linenums">
&lt;?php echo TbHtml::stackedPills(array(
    array('label' => 'Home', 'url' => '#', 'active' => true),
    array('label' => 'Profile', 'url' => '#',),
    array('label' => 'Messages', 'url' => '#',),
)); ?>
</pre>

   <hr class="bs-docs-separator">

   <h2>Dropdowns</h2>