<?php echo TbHtml::stackedPills(MenuItem::model()->findByPk($id)->getItems());
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'); }
?> </div> <pre class="prettyprint linenums"> <?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"> <?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>