Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

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