/** * Initializes the widget. */ public function init() { parent::init(); $this->initOptions(); echo $this->renderToggleButton() . "\n"; echo Html::beginTag('div', $this->options) . "\n"; echo Html::beginTag('div', $this->dialogOptions) . "\n"; echo $this->renderCloseButton(); }
/** * Initializes the widget. */ public function init() { parent::init(); $this->clientOptions = false; Html::addCssClass($this->options, 'uk-navbar'); if (empty($this->options['role'])) { $this->options['role'] = 'navigation'; } echo Html::beginTag('nav', $this->options); }
/** * Initializes the widget. * If you override this method, make sure you call the parent implementation first. */ public function init() { parent::init(); Html::addCssClass($this->options, 'uk-dropdown'); $this->tagOptions['data-uk-dropdown'] = $this->jsonClientOptions(); if ($this->toggleButton !== null) { Html::addCssClass($this->tagOptions, 'uk-button-dropdown'); } if ($this->tag) { echo Html::beginTag($this->tag, $this->tagOptions) . "\n"; } echo $this->renderToggleButton() . "\n"; echo Html::beginTag('div', $this->options); }
/** * Initializes the widget. * If you override this method, make sure you call the parent implementation first. */ public function init() { parent::init(); Html::addCssClass($this->options, 'uk-button-group'); }
/** * Initializes the widget. */ public function init() { parent::init(); Html::addCssClass($this->options, 'uk-tab'); }
/** * Initializes the widget. * If you override this method, make sure you call the parent implementation first. */ public function init() { parent::init(); $this->clientOptions = false; Html::addCssClass($this->options, 'uk-button'); }
/** * Initializes the widget. */ public function init() { parent::init(); if ($this->route === null && Yii::$app->controller !== null) { $this->route = Yii::$app->controller->getRoute(); } if ($this->params === null) { $this->params = $_GET; } Html::addCssClass($this->options, $this->navbar ? 'uk-navbar-nav' : 'uk-nav'); if ($this->accordion) { $this->options['data-uk-nav'] = $this->jsonClientOptions(); } }