public function range($options = []) { $this->parts['{input}'] = IonRangeSlider::widget(array_merge($options, ['model' => $this->model, 'attribute' => $this->attribute])); return $this; }
/** * Generates range component. * * @param array $options range options * @return $this */ public function range($options = []) { $this->parts['{input}'] = IonRangeSlider::widget(array_merge($options, ['model' => $this->model, 'attribute' => $this->attribute, 'form' => $this->form, 'type' => $this->type, 'addon' => $this->addon])); $this->addon = []; // addon already processed by widget return $this; }