TbHtml::tabbablePills PHP Method

tabbablePills() public static method

Generates a tabbable pills menu.
public static tabbablePills ( array $pills, array $htmlOptions = [] ) : string
$pills array the pills.
$htmlOptions array additional HTML attributes.
return string the generated menu.
    public static function tabbablePills($pills, $htmlOptions = array())
    {
        return self::tabbable(self::NAV_TYPE_PILLS, $pills, $htmlOptions);
    }

Usage Example

Exemplo n.º 1
0
 public function testTabbablePills()
 {
     $I = $this->codeGuy;
     $html = TbHtml::tabbablePills(array(array('label' => 'Link', 'content' => 'Tab content')));
     $tabbable = $I->createNode($html, 'div.tabbable');
     $ul = $tabbable->filter('ul.nav');
     $I->seeNodeCssClass($ul, 'nav-pills');
 }
TbHtml