/** * @inheritdoc */ public function init() { Html::addCssClass($this->options, 'bfh-fontsizes'); parent::init(); if (!isset($this->options['data-fontsize'])) { $this->options['data-fontsize'] = ArrayHelper::remove($this->options, 'data-value'); } unset($this->options['data-name'], $this->options['data-value']); }
/** * @inheritdoc */ public function init() { Html::addCssClass($this->options, 'bfh-countries'); if (ArrayHelper::getValue($this->clientOptions, 'flags') && !$this->selectBox) { $this->selectBox = true; } parent::init(); if (!isset($this->options['data-country'])) { $this->options['data-country'] = ArrayHelper::remove($this->options, 'data-value'); } unset($this->options['data-name'], $this->options['data-value']); }
/** * @inheritdoc */ public function init() { if (empty($this->country)) { throw new InvalidConfigException('"$country" cannot be empty.'); } Html::addCssClass($this->options, 'bfh-timezones'); $this->clientOptions['country'] = $this->country; parent::init(); if (!isset($this->options['data-timezone'])) { $this->options['data-timezone'] = ArrayHelper::remove($this->options, 'data-value'); } unset($this->options['data-name'], $this->options['data-value']); }
/** * @inheritdoc */ public function init() { Html::addCssClass($this->options, 'bfh-number'); parent::init(); unset($this->options['data-name'], $this->options['data-value']); }
/** * @inheritdoc */ public function init() { Html::addCssClass($this->options, 'bfh-colorpicker'); parent::init(); }
/** * @inheritdoc */ public function init() { Html::addCssClass($this->options, 'bfh-selectbox'); parent::init(); }