/** * Generates multiSelect component [[MultiSelect]]. * * @param array $items * @param array $options multiSelect options * @return $this */ public function multiSelect($items, $options = []) { $this->parts['{input}'] = MultiSelect::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; }