Modal Popup JS Triggers

What is Modal Popup trigger?

One can perform JS actions on the event of these triggers in Modal Popup. Ultimate Addon for Elementor has builtin triggers for such actions. They are as listed below.

  1. Before Opening Modal Popup: This trigger invokes before opening a Modal Popup. Its parameters include Modal Popup ID.
    uael_before_modal_popup_open
  2. After Opening Modal Popup: This trigger invokes after opening a Modal Popup. Its parameters include Modal Popup ID.
    uael_after_modal_popup_open

 

Example: The below example shows the usage of these triggers


jQuery( window ).on( 'uael_after_modal_popup_open', function( e, id ) {
console.log( 'after: ' + id ); // Do actions here
} );

jQuery( window ).on( 'uael_before_modal_popup_open', function( e, id ) {
console.log( 'before: ' + id ); // Do actions here
} );

Was this article helpful?
Did not find a solution? We are here to help you succeed.

Related Docs

Get access to growing library of 40+ innovative widgets and 300+ creative templates.

Scroll to Top