Ejemplo n.º 1
0
 public function init()
 {
     parent::init();
     if (!isset($this->pluginOptions['emptytext'])) {
         $this->pluginOptions['emptytext'] = Yii::t('hipanel', 'Empty');
     }
 }
Ejemplo n.º 2
0
 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);
 }