Detect on load of component dialog or page properties - AEM 6.4

Avatar

Avatar

cprogramkarthic

Avatar

cprogramkarthic

cprogramkarthic

08-04-2019

Hi All,

I am using the below js function to perform certain logic during on load of component dialog and page properties.

$(document).on("foundation-contentloaded", function (e) {

//some logic here

});

I need to do different logic on load of page properties and on load of component dialog.

If i use

$document.on("dialog-ready", function () {

});

then i am able to perform the logic for on load of component dialog.

How can i find out if it is on load of page properties?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Hemant_arora

Avatar

Hemant_arora

Hemant_arora

08-04-2019

Search for the form element with id "cq-sites-properties-form" and you should be able to determine the page properties dialog

Answers (0)