protected function renderToggleButton()
    {
        if (!isset($this->toggleButtonOptions['options']['data-target'])) {
            $this->toggleButtonOptions['options']['data-target'] = $this->options['id'];
        }
        Html::addCssClass($this->toggleButtonOptions['options'], ['toggle-button' => 'dropdown-trigger']);

        return Button::widget($this->toggleButtonOptions);
    }
protected function renderToggleButton()
    {
        if (!isset($this->toggleButtonOptions['options']['data-target'])) {
            $this->toggleButtonOptions['options']['data-target'] = $this->options['id'];
        }
        Html::addCssClass($this->toggleButtonOptions['options'], ['toggle-button' => 'dropdown-trigger']);

        return Button::widget($this->toggleButtonOptions);
    }
protected function renderToggleButton ( ) { if ( ! isset ( $ this -> toggleButtonOptions [ 'options' ] [ 'data-target' ] ) ) { $ this -> toggleButtonOptions [ 'options' ] [ 'data-target' ] = $ this -> options [ 'id' ] ; } Html :: addCssClass ( $ this -> toggleButtonOptions [ 'options' ] , [ 'toggle-button' => 'dropdown-trigger' ] ) ; return Button :: widget ( $ this -> toggleButtonOptions ) ; }
Renders the dropdown toggle button.

@return string the markup of the toggle button.
@throws \Exception
Renders the dropdown toggle button .