Event listener property used to trigger a function on click of classic dialog tab | Community
Skip to main content
Level 2
Mar 3, 2021 2:27 PM UTC
Solved

Event listener property used to trigger a function on click of classic dialog tab

Hi All,

On Click of a tab in a classic UI dialog, I want a function to be triggered (ex: display a message inside the dialog on click on the tab2). Which event listener property can I use for this?

Similar to render, afterrender, beforerender events etc, for above situation, what can be the solution? 

Thanks in advance

@1709464 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Anudeep_Garnepudi
Anudeep_GarnepudiAccepted solution
New Participant
Mar 3, 2021 6:24 PM UTC

@helen_dd 

Use activate event. The event will be called with panel as parameter.

4 replies

Anudeep_Garnepudi
Anudeep_GarnepudiAccepted solution
New Participant
Mar 3, 2021 6:24 PM UTC

@helen_dd 

Use activate event. The event will be called with panel as parameter.

Translate
Helen_DDAuthor
Level 2
Mar 3, 2021 6:46 PM UTC
This worked. Thanks a lot.
Translate
SureshDhulipudi
New Participant
Mar 3, 2021 3:50 PM UTC

$("a[aria-controls='<YOUR TAB ID >']").click(function() {

//logic here

}

Translate
kautuk_sahni
Employee
Mar 11, 2021 8:05 AM UTC
@sureshdhulipudi, you are such a phenomenal help to the AEM Community.
Translate
Kautuk Sahni