Project

Contents

Issue #00005345

jquery-accordion: added event parameter "index"
AFW
Feature/Improvement

The index of the selected panel now is transmitted as parameter to event "activated":

require(["jquery", "jquery-accordion"], function($){
    $("#my-element").wga_accordion()
    .on("activated", function(ev, el, index){
        console.log(index)
    });
})