YII2 Collapse::widget

i need add more than one child in this widget


    <?php

    echo Collapse::widget([

        'items' => [

            [

                'label' => 'Collapsible Group Item #1',

                'content' => 'Child 1',

            [color="#0000FF"]    ................ what code need to add this place ....................[/color]

            ],

        ]

    ]);

    ?>

please help me ty

Hi,

There is a solution for you:

  • ‘content’ => your widget, or ‘content’=>$this->render(‘your view’)

Good luck.

tyyyyyyyyyy :rolleyes: