Hi,
i can’t find the option or property to set all panels closed by default of the widget “CJuiAccordion”. Can anybody tell me how to do this?
Greetings
Pepsifan
Hi,
i can’t find the option or property to set all panels closed by default of the widget “CJuiAccordion”. Can anybody tell me how to do this?
Greetings
Pepsifan
Hi,
my accordion is configured like this and is closed by default:
jQuery('#yw0').accordion({
'active':true,
'autoHeight':false,
'animated':false,
'alwaysOpen':false,
'collapsible':true
});
to have it open, by default it would need ‘active’:true
and for example ‘active’:0 for the first panel to be open
Cheers,
Michael
Hi banago,
thank you very much!!
Exactly what i was looking for!
For the Yii widget "CJuiAccordion" this was the solution:
'options'=>array(
'collapsible'=>true,
'active'=>false,
),
Greetings
Pepsifan