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

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

  • March 3, 2021
  • 2 replies
  • 1556 views

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.
Best answer by Anudeep_Garnepudi

@helen_dd 

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

2 replies

SureshDhulipudi
Community Advisor
Community Advisor
March 3, 2021

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

//logic here

}

kautuk_sahni
Community Manager
Community Manager
March 11, 2021
@sureshdhulipudi, you are such a phenomenal help to the AEM Community.
Kautuk Sahni
Anudeep_Garnepudi
Community Advisor
Anudeep_GarnepudiCommunity AdvisorAccepted solution
Community Advisor
March 3, 2021

@helen_dd 

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

Helen_DDAuthor
Level 2
March 3, 2021
This worked. Thanks a lot.