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