Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function radioListToggles($items, $options = [])
 {
     $this->template = $this->radioListTogglesTemplate;
     $options = array_merge($this->inputOptions, $options);
     $options['itemOptions']['iconOptions']['data-swchon-text'] = ArrayHelper::remove($options, 'onText', 'ON');
     $options['itemOptions']['iconOptions']['data-swchoff-text'] = ArrayHelper::remove($options, 'offText', 'OFF');
     $this->adjustLabelFor($options);
     $this->parts['{input}'] = Html::activeRadioListSmartToggles($this->model, $this->attribute, $items, $options);
     return $this;
 }