Tabbar onclick issue

Hi Team,

I an using the “tabbar” component but stuck on how to add on-click event to both tabs.

Below is the code snippet : Where i am using tabbar to create 2 tabs, i need separate on-click events to both tabs.
or in other words how can i know which tab i have clicked.

http://webix.com/snippet/08e3a60d

http://webix.com/snippet/99ccc33f

You can use onBeforeTabClick event