Modal Popup JS Triggers

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.

Before Opening Modal Popup: This trigger invokes before opening a Modal Popup. Its parameters include Modal Popup ID.
uael_before_modal_popup_open

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
} );

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註