public function init() { UI::addCssClasses($this->options, ['ui', 'dropdown']); if ($this->search) { UI::addCssClasses($this->options, [self::TYPE_SEARCH]); } if ($this->fluid) { UI::addCssClasses($this->options, [self::TYPE_FLUID]); } if ($this->disabled) { UI::addCssClasses($this->options, [self::TYPE_DISABLED]); } if ($this->compact) { UI::addCssClasses($this->options, [self::TYPE_COMPACT]); } if ($this->upward) { UI::addCssClasses($this->options, [self::TYPE_UPWARD]); } if ($this->multiple) { $this->options['multiple'] = true; } if ($this->type !== self::TYPE_DEFAULT) { UI::addCssClasses($this->options, [self::TYPE_SELECTION]); } parent::init(); }
public function init() { parent::init(); $this->prepareOptions(); if ($this->inline) { UI::addCssClasses($this->options, [self::TYPE_INLINE, 'fields']); } else { UI::addCssClasses($this->options, [self::TYPE_GROUPED, 'fields']); } }
public function init() { parent::init(); $this->prepareInputId(); UI::addCssClasses($this->options, ['ui', $this->type, 'checkbox']); if ($this->readOnly) { UI::addCssClasses($this->options, [self::TYPE_READONLY]); } if ($this->disabled) { UI::addCssClasses($this->options, [self::TYPE_DISABLED]); } if ($this->fitted) { UI::addCssClasses($this->options, [self::TYPE_FITTED]); } }
public function init() { parent::init(); UI::addCssClasses($this->options, ['ui', 'search']); UI::addCssClasses($this->resultsOptions, ['results']); if ($this->fluid) { UI::addCssClasses($this->options, [self::TYPE_FLUID]); } if ($this->rightAligned) { UI::addCssClasses($this->options, [self::TYPE_RIGHT_ALIGNED]); } if (!empty($this->type)) { Html::addCssClass($this->options, $this->type); $this->clientOptions['type'] = $this->type; } if (!empty($this->placeholder)) { $this->inputOptions['placeholder'] = $this->placeholder; } }