run() public method

Renders the widget.
public run ( )
Ejemplo n.º 1
0
 public function run()
 {
     TabsAsset::register($this->getView());
     if (!$this->hasActiveTab() && !empty($this->items)) {
         reset($this->items);
         $this->items[key($this->items)]['active'] = true;
     }
     return parent::run();
 }
Ejemplo n.º 2
0
 /**
  *  Renders the widget.
  */
 public function run()
 {
     $classWrap = ['tabs-' . $this->placement];
     if ($this->styled) {
         $classWrap[] = 'tabbable-custom';
         if ($this->justified) {
             $classWrap[] = 'nav-justified';
         }
     } else {
         $classWrap[] = 'tabbable';
     }
     echo Html::beginTag('div', ['class' => implode(' ', $classWrap)]);
     echo parent::run();
     echo Html::endTag('div');
 }
Ejemplo n.º 3
0
 public function run()
 {
     parent::run();
     $this->registerClientScipt();
 }