Tab Switch Event

Hi, I would like to run an event when user switches Tabs. Which even could I used, and how do i know the active tab ID?

Thanks,
Jay

You can use onAfterTablClick
http://docs.webix.com/api__link__ui.tabbar_onaftertabclick_event.html

You will get the id of active tab as first parameter of event handler

This didn’t work. My component is a view: “tabview” with id: thetabs.

$$(‘thetabs’).attachEvent(“onItemClick”…

Did i do something wrong?

Tabview is a combination of tabbar and multiview, you can use tabbar object in configuration to configure tabbar part or attach events to it.

http://webix.com/snippet/18c3feb5

1 Like