protected function renderCollapsible($link, $items = [], $isParentActive = false)
    {
        $itemOptions = [];
        if ($isParentActive) {
            Html::addCssClass($itemOptions, ['item-activation' => 'active']);
        }

        $collapsibleItems = [
            [
                'header' => ['content' => $link],
                'body' => ['content' => $this->buildCollapsibleBody($items)],
                'options' => $itemOptions
            ],
        ];

        return Collapsible::widget([
            'items' => $collapsibleItems,
            'type' => Collapsible::TYPE_ACCORDION,
        ]);
    }
protected function renderCollapsible($link, $items = [], $isParentActive = false)
    {
        $itemOptions = [];
        if ($isParentActive) {
            Html::addCssClass($itemOptions, ['item-activation' => 'active']);
        }

        $collapsibleItems = [
            [
                'header' => ['content' => $link],
                'body' => ['content' => $this->buildCollapsibleBody($items)],
                'options' => $itemOptions
            ],
        ];

        return Collapsible::widget([
            'items' => $collapsibleItems,
            'type' => Collapsible::TYPE_ACCORDION,
        ]);
    }
protected function renderCollapsible ( $ link , $ items = [ ] , $ isParentActive = false ) { $ itemOptions = [ ] ; if ( $ isParentActive ) { Html :: addCssClass ( $ itemOptions , [ 'item-activation' => 'active' ] ) ; } $ collapsibleItems = [ [ 'header' => [ 'content' => $ link ] , 'body' => [ 'content' => $ this -> buildCollapsibleBody ( $ items ) ] , 'options' => $ itemOptions ] , ] ; return Collapsible :: widget ( [ 'items' => $ collapsibleItems , 'type' => Collapsible :: TYPE_ACCORDION , ] ) ; }
Renders a submenu as Collapsible in side navigation element.

@param string $link the trigger link.
@param array $items the submenu items.
@param bool $isParentActive whether the submenu's parent list element shall get an 'active' state.
@return string the Collapsible markup.

@throws \Exception
Renders a submenu as Collapsible in side navigation element .