public function init() { parent::init(); if (!isset($this->pluginOptions['emptytext'])) { $this->pluginOptions['emptytext'] = Yii::t('hipanel', 'Empty'); } }
public function init() { parent::init(); if (!$this->combo instanceof Combo) { $this->combo = ArrayHelper::merge(['model' => $this->model, 'attribute' => $this->attribute], $this->combo); $this->combo = Yii::createObject($this->combo); } $this->combo->registerClientConfig(); $this->pluginOptions = ArrayHelper::merge(['type' => 'combo', 'placement' => 'bottom', 'combo' => $this->combo->getPluginOptions(), 'hash' => $this->combo->configId], $this->pluginOptions); $this->registerAssets(); }
public function init() { parent::init(); $this->pluginOptions = ArrayHelper::merge(['type' => 'remoteformat'], $this->pluginOptions); }