/**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     if ($this->inline && !isset($this->containerOptions['id'])) {
         $this->containerOptions['id'] = $this->options['id'] . '-container';
     } else {
         Html::addCssClass($this->options, 'form-control form-control-inline');
     }
 }
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, 'form-control');
     if ($this->multiple) {
         $this->options['multiple'] = 'multiple';
     }
     if ($this->disabled) {
         $this->options['disabled'] = true;
     }
 }