dhtmlxTabbar: check whether the tab on the outer right has b

We use a dhtmlxTabbar as Wizard (i.e., tabs are clicked in order from left to right, one after another).

Is there some general way to check within the onSelectHandler function whether the last tab (i.e., that on the very right) as been selected?

Thanks in advance for any help.

There is no public method to do such task, by using inner vars it can be done as
var count = tabbar.rows[0].length;
if (!tabbar._getTabById(id).nextSibling.idd) alert(“last”);