You could subscribe to the Selected
] event, which triggers when the active tab is changed. From there you have access to the
property, from which you could get either the index or the tab text.
You can then use this index or the text to perform whatever operation is needed.