/** * @inherit doc */ public function init() { if ($this->orientation == 'vertical') { Html::addCssClass($this->containerOptions, 'kv-range-vertical'); $this->html5Options['orient'] = 'vertical'; } parent::init(); }
public function init() { $this->type = 'color'; $this->width = '60px'; if (!$this->useNative) { Html::addCssClass($this->html5Container, 'input-group-sp'); if (!isset($this->pluginOptions['preferredFormat'])) { $this->pluginOptions['preferredFormat'] = 'hex'; } $this->pluginOptions = $this->showDefaultPalette ? ArrayHelper::merge($this->_defaultOptions, $this->_defaultPalette, $this->pluginOptions) : ArrayHelper::merge($this->_defaultOptions, $this->pluginOptions); } parent::init(); }