I have a Tab Container and I want to execute some js when I click on a tab's title bar.
I can't seem to figure out how to add an event to that.
EDIT:
It looks like I'll be using onFocus, but I'm still having trouble finding the proper syntax.
EDIT: Found onFocus and onBlur, but still having trouble getting it to work.
Here's a complete code sample that works in Dojo 1.8, I've tested it:
You need to connect to the _transition event.
Where "tabs" is your TabContainer.
The correct Dojo 1.7+ should be;
another way could be