Код: Выделить всё
echo Accordion::widget([
'items' => [
[
'header' => 'Section 1',
'content' => 'Mauris mauris ante, blandit et, ultrices a, suscipit eget...',
'options' => ['tag' => 'div', 'active' => false],
],
[
'header' => 'Section 2',
'headerOptions' => ['tag' => 'h3'],
'content' => 'Sed non urna. Phasellus eu ligula. Vestibulum sit amet purus...',
'options' => ['tag' => 'div'],
],
],
'options' => ['tag' => 'div'],
'itemOptions' => ['tag' => 'div'],
'headerOptions' => ['tag' => 'h2'],
'clientOptions' => ['collapsible' => true],
]);