Пример #1
0
 /**
  * Generates bootstrap select picker component [[BootstrapSelect]].
  *
  * @param array $items
  * @param array $options bootstrap select options
  * @return $this
  */
 public function bsSelectSplitter($items, $options = [])
 {
     $this->parts['{input}'] = BootstrapSelectSplitter::widget(array_merge($options, ['model' => $this->model, 'attribute' => $this->attribute, 'items' => $items, 'form' => $this->form, 'type' => $this->type, 'addon' => $this->addon]));
     $this->addon = [];
     // addon already processed by widget
     return $this;
 }