public function run()
    {
        if ($this->toggleButtonOptions !== false) {
            $html[] = $this->renderToggleButton();
        }
        $html[] = $this->renderItems($this->items, $this->options);
        return implode("\n", $html);
    }
public function run()
    {
        if ($this->toggleButtonOptions !== false) {
            $html[] = $this->renderToggleButton();
        }
        $html[] = $this->renderItems($this->items, $this->options);
        return implode("\n", $html);
    }
public function run ( ) { if ( $ this -> toggleButtonOptions !== false ) { $ html [ ] = $ this -> renderToggleButton ( ) ; } $ html [ ] = $ this -> renderItems ( $ this -> items , $ this -> options ) ; return implode ( "\n" , $ html ) ; }
Renders the widget and registers the plugin asset.

@return string the result of widget execution to be outputted.
@throws InvalidConfigException
@see \macgyer\yii2materializecss\lib\MaterializeWidgetTrait|MaterializeWidgetTrait
Renders the widget and registers the plugin asset .