예제 #1
0
 /**
  * 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');
     }
 }
예제 #2
0
 /**
  * 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;
     }
 }