Accordion collapse event

Hello Webix team,

https://snippet.webix.com/t3g7norp

I have one accordion in above snippet, I want to call myfunction, but initially, but it is not getting called as I have added collapsed:true, attribute. Is there any event on which I can call myfunction initially to in case of collapsed:true, attribute of accordion.

Hello @leod1481 ,

The onAfterCollapse/onAfterExpand events of the parent ui.accordion fire initially for every collapsible panel.
In general, you can explore the related events in the debug mode of the library ( which is recommended for development process )

You can use it to call the needed function within webix.once helper as follows: https://snippet.webix.com/5ibh5r3u