Accordion toggle

Hi team,

Could you tell me where is stored the accordion state please ?

I need to toogle one : for example, i have a datatable and i wish toggle the right pane on row dobbclick

https://snippet.webix.com/ferouq9i

Hi @XavierDP ,

Could you tell me where is stored the accordion state please ?

You can use getChildViews():

let accordion = $$("accordion").getChildViews();

After that you can iterate through array and get the current state of item:

accordion.forEach(function(elem){    
   console.log(elem.config.collapsed)
 })

It can look something like this:
https://snippet.webix.com/oqf6e55c

Ok perfect @annazankevich !

https://snippet.webix.com/lp47cu59

@XavierDP ,
Also, if you need to see only one panel at a time, you can change the multi property.
Please take a look at the example:
https://snippet.webix.com/hhd19mgi

ok thank you for your advice