Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kelly Blaschko on Jun 06, 2007 22:03
open dhtmlx forum
dhtmlxTabber: Adding tabs on the fly

Using JavaScript, is it poosible to add tabs to row 2 after an on-click event of a tab located at row 1? What I want to do is be able to define a parent-child relationship of tabs located on rows 1 and 2 on the fly. Is it also possible to vary tab styles based on row?
Answer posted on Jun 07, 2007 10:43
is it poosible to add tabs to row 2 after an on-click event of a tab located at row 1?

You can add tabs on the fly to any position
    tabbar.addTab(id,text,size,pos,row);
pos - tab position
row - row index

But in case of multiline rows the things can be complicated, because by default in case of tab selecting, its row goes to bottom, changing order of tab lines.
It may be more simple to use nested tabbars, where inside each tab you create child tabbars.


to vary tab styles based on row?


It is not possible, all tabs in tabbar must have the same style.
Answer posted by Embre (Support) on Dec 11, 2014 09:00

To find more precise comments upon this issue, we can offer you read about tree table javascript and tree menu.