/**
  * Renders the widget.
  */
 public function run()
 {
     MaterializeAsset::register($this->getView());
     return Html::tag('div', $this->renderItems(), $this->options);
 }
Beispiel #2
0
 /**
  * Renders the widget.
  */
 public function run()
 {
     MaterializeAsset::register($this->getView());
     if ($this->buttonCollapse) {
         MaterializePluginAsset::register($this->getView());
         $this->getView()->registerJs('$("#' . $this->id . '-button-collapse").sideNav();');
     }
     return $this->renderItems();
 }