2017-07-21 3 views
0
echo Accordion::widget([ 
      'items' => [ 
       [ 
        'header' => 'Section 1', 
        'content' => 'Mauris mauris ante, blandit et, ultrices a, suscipit eget...', 
        'options' => ['tag' => 'div'], 
       ], 
       [ 
        '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], 
     ]); 

Hallo. Erste Registerkarte standardmäßig aktiviert, wie wird die erste Registerkarte deaktiviert? In der Dokumentation fand ich nicht Informationen zu diesem istYii2 Akkordeon, wie man die erste Registerkarte inaktiv macht

Antwort

0

Lösung zu Optionen hinzufügen

'active' => false 

'clientOptions' => ['collapsible' => true, 'active' => false], 
Verwandte Themen