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
解決済み

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

  • March 3, 2021
  • 2 の返信
  • 1557 ビュー

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 

このトピックへの返信は締め切られました。
ベストアンサー Anudeep_Garnepudi

@helen_dd 

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

2 の返信

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.

AG
Helen_DD作成者
Level 2
March 3, 2021
This worked. Thanks a lot.