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

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

  • March 3, 2021
  • 2 svar
  • 1556 visningar

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 

Det här ämnet har stängts för svar.
Bästa svar av Anudeep_Garnepudi

@helen_dd 

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

2 svar

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
Community Advisor
March 3, 2021

@helen_dd 

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

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