Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

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

Avatar

Level 2

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

@AEM 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Helen_DD 

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

Screenshot 2021-03-03 at 11.53.04 PM.png

View solution in original post

4 Replies

Avatar

Community Advisor

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

//logic here

}

Avatar

Administrator
@SureshDhulipudi, you are such a phenomenal help to the AEM Community.


Kautuk Sahni

Avatar

Correct answer by
Community Advisor

@Helen_DD 

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

Screenshot 2021-03-03 at 11.53.04 PM.png