Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Oct 06, 2008 03:10
open dhtmlx forum
DHX Tabbar: How get last tab's ID ?

Hi there,
How to get last tab's ID ?
Answer posted by Support on Oct 06, 2008 06:16
Tabbar doesn't have any API to receive such info.
Answer posted by Tejas Shah on Oct 07, 2008 02:09
Hi there,
             I found the solution, so wanted to share it.
 
             Last tab's Id = tabbar.tabsId.last().idd;
Answer posted by Support on Oct 07, 2008 07:15
This will work in common case, but API allows to add tab not to the end but to specified position. So in theory it possible to write init code, with which code above will be incorrect.