Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rene Hdz on Oct 06, 2009 15:36
open dhtmlx forum
tabbar close on tab could be optional?

Is there any way that the close tab button to be optional?
Answer posted by Stanislav (support) on Oct 07, 2009 09:49
The settings applied to whole tabbar, so all tabs will have or will not have closing button. 
There is a small trick - all buttons created before enableTabCloseButton command will not have button, so you can use something similar to the next

tabbar.addTab(... //create buttons which must not have closing button
tabbar.enableTabCloseButton(true)
tabbar.addTab(... //create buttons which must have closing button