Tabbar tabs.setOnSelectHandler


I am migrating to the latest version of dhtmlx and have encountered the following problem.
The code was working in the previous version, but now after importing the new files i get: “tabs.setOnSelectHandler is not a function”.

Is the setOnSelectHandler command still valid?

I am using the dhtmlxtabbar_start.js and dhtmlxtabbar.js files.



setOnSelectHandler is not support in the 2.6 version. You may replace it as follows:

tabbar.setOnSelectHandler(handler); => tabbar.attachEvent(“onSelect”,handler);

If you want to use old methods, you may include dhtmlxtabbar_deprecated.js (dhtmlxTabbar/codebase/ext/dhtmlxtabbar_deprecated.js)