Accordion collapse event

Hello Webix team,

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:

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion