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(); }
/** * 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'); }
public function run() { parent::run(); $this->registerClientScipt(); }