Exemplo n.º 1
0
 /**
  * @param TabStrip $control
  * @param Group $group
  */
 protected function extendTabStrip(TabStrip $control, Group $group = null)
 {
     $control->attr('active', 'active');
     if ($control->getMode() == 'tabs:begin') {
         $control->addClass('nav');
         $control->addClass($control->isPills() ? 'nav-pills' : 'nav-tabs');
         if ($control->isJustified()) {
             $control->addClass('nav-justified');
         }
         $control->attr('tabs', ['role' => 'tablist']);
         $control->attr('tab', ['role' => 'presentation']);
         $control->attr('link', ['role' => 'tab', 'data-toggle' => 'tab']);
         $control->attr('panels', ['class' => 'tab-content']);
     }
     if ($control->getMode() == 'panel:begin') {
         $control->attr('panel', ['role' => 'tabpanel', 'class' => 'tab-pane']);
     }
 }
Exemplo n.º 2
0
 /**
  * @param TabStrip $control
  * @param Group $group
  */
 protected function extendTabStrip(TabStrip $control, Group $group = null)
 {
     $control->attr('active', 'active');
     if ($control->getMode() == 'tabs:begin') {
         $control->addClass('tabs');
         $control->attr('tabs', ['data-tab' => '']);
         $control->attr('tab', ['class' => 'tab-title']);
         $control->attr('link', []);
         $control->attr('panels', ['class' => 'tabs-content']);
     }
     if ($control->getMode() == 'panel:begin') {
         $control->attr('panel', ['class' => 'content']);
     }
 }