protected function renderToggleButton()
    {
        if ($this->toggleButton !== false) {
            $tag = ArrayHelper::remove($this->toggleButton, 'tag', 'div');
            $label = ArrayHelper::remove($this->toggleButton, 'label', 'Show');
            if ($tag === 'button' && !isset($this->toggleButton['type'])) {
                $this->toggleButton['type'] = 'button';
            }
            if ($tag === 'div') {
                Html::addCssClass($this->toggleButton, 'ui');
                Html::addCssClass($this->toggleButton, 'button');
            }
            $view = $this->getView();
            DosAmigosAsset::register($view);
            $view->registerJs('dosamigos.semantic.init();');

            return Html::tag($tag, $label, $this->toggleButton);
        } else {
            return null;
        }
    }