Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dominik on Nov 19, 2007 09:25
open dhtmlx forum
Disabling tabs in the xml specification of a tabbar

Is there a way to disable specific tabs already during XML loading (by specificying a tab as disabled in XML)?
Answer posted on Nov 20, 2007 04:15
There is no predefined attribute for such task, but you can add new one if necessary, just locate in dhtmlxtabbar.js next line

if (atabs[j].getAttribute("selected")) selected=id;

and add after it

if (atabs[j].getAttribute("disabled")) that.disableTab(id);