Tabbar click event


#1

I’m using two tab bars per page.
It’s a tab bar with a different definition.
I want to run a different function every time I click on each tab bar.

so

tabbar1.events.on(“click”, function(){
});

tabbar2.events.on(“click”, function(){
});

I wrote it like this and it doesn’t work.
What can I do?
For your information, the Tabbar event function can’t solve the problem due to the conflict with the existing code.


#2

Please, check the available tabbar events:
https://docs.dhtmlx.com/suite/category/tabbar-events/
according to your needs, most probably you need to use a change event:
https://snippet.dhtmlx.com/y46sgm4f