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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注