nico3333fr / jquery-accessible-accordion-aria

jQuery Accessible Accordion System, using ARIA
MIT License
60 stars 19 forks source link

Add events for external use #23

Open Spone opened 7 years ago

Spone commented 7 years ago

Hi there,

I'd like to be able to listen to some events on the accordion, in order to refresh other parts of my page when an accordion item is open or closed.

This would be similar to Bootstrap Collapse events.

So I would be able to do something like:

$('.js-accordion').on('open.js-accordion', onAccordionItemOpened);
$('.js-accordion').on('close.js-accordion', onAccordionItemClosed);

Are you open to this idea? Do you want me to implement it?

Thanks in advance.

Spone commented 6 years ago

Hi @nico3333fr, any news on this? Thanks