0

I need to use js to define the identifier of the active (open / editable) widget.

+

Catch the event (trigger) switch the active widget.

Is there a built-in js api for these events?

I need something like this:

 jQuery(document).on('widget-updated', function(event, widget){
 //...
 });
jQuery(document).on('widget-added', function(event, widget){
 //...
 });

Or js object (view) with this data.

1 Answer 1

0

Found in the source code the answer to my question, maybe someone will come in handy:

jQuery(document).on('expand', function (event) {
        console.log(event.target);
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.