/** * 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, $this->flat ? 'btn-flat' : 'btn'); Waves::addWaveEffect($this->options, $this->waveColor, $this->waveFrom); }
/** * Initializes the widget. * If you override this method, make sure you call the parent implementation first. */ public function init() { parent::init(); $this->clientOptions = false; MaterializeIconsAsset::register($this->getView()); Html::addCssClass($this->options, $this->size); Html::addCssClass($this->options, 'material-icons'); }
/** * 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', ['class' => 'modal-content']) . "\n"; }
/** * 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 = Yii::$app->request->getQueryParams(); } if ($this->dropDownCaret === null) { $this->dropDownCaret = Icon::widget(['name' => 'navigation-arrow-drop-down', 'options' => ['class' => 'right']]); } }
/** * 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, 'dropdown-content'); }