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.
Esempio 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');
 }