Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by SethG911 on Jan 20, 2009 08:50
open dhtmlx forum
Tabbar color (revisted)

I understand that you can use tabbar.setCustomStyle to change the css colors of a tab. But I am using the modern stlye which does not accept css coloring since it is using images. If I made another color tab image how would I tell a single tab to use this alternate image set?
Answer posted by Support on Jan 20, 2009 09:15
While there is no direct API, it can be done as

tabbar.setCustomStyle("b1")
tabbar._getTabStyle("b1")[1]="modern/p_middle_n.gif"; 

 0 - left part of passive tab
 1 - center part of passive tab
 2 - right part of passive tab
 3-5 - same for active tab