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