示例#1
0
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     parent::init();
     $this->clientOptions = false;
     Html::addCssClass($this->options, $this->flat ? 'btn-flat' : 'btn');
     Waves::addWaveEffect($this->options, $this->waveColor, $this->waveFrom);
 }
示例#2
0
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     parent::init();
     $this->clientOptions = false;
     MaterializeIconsAsset::register($this->getView());
     Html::addCssClass($this->options, $this->size);
     Html::addCssClass($this->options, 'material-icons');
 }
示例#3
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     echo $this->renderToggleButton() . "\n";
     echo Html::beginTag('div', $this->options) . "\n";
     echo Html::beginTag('div', ['class' => 'modal-content']) . "\n";
 }
示例#4
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     if ($this->route === null && Yii::$app->controller !== null) {
         $this->route = Yii::$app->controller->getRoute();
     }
     if ($this->params === null) {
         $this->params = Yii::$app->request->getQueryParams();
     }
     if ($this->dropDownCaret === null) {
         $this->dropDownCaret = Icon::widget(['name' => 'navigation-arrow-drop-down', 'options' => ['class' => 'right']]);
     }
 }
示例#5
0
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, 'dropdown-content');
 }