示例#1
0
 public function range($options = [])
 {
     $this->parts['{input}'] = IonRangeSlider::widget(array_merge($options, ['model' => $this->model, 'attribute' => $this->attribute]));
     return $this;
 }
示例#2
0
 /**
  * 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;
 }