/** * Renders the widget. */ public function run() { MaterializeAsset::register($this->getView()); return Html::tag('div', $this->renderItems(), $this->options); }
/** * 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(); }