Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by josh on Oct 25, 2008 21:38
open dhtmlx forum
dhtmlxDBAdmin


just wondering for your dhtmlxDBAdmin demoapp, did you use dhtmlx tabbars to create those tabs that popups when you select a row in the tree?

If so, how did you create the tabs with that close icon/button?



Thank you,
Answer posted by Support on Oct 27, 2008 02:40
Yep, tabbar in right part is an instance of dhtmlxTabbar 
Component has native support for close buttons, such mode can be enabled with 
    tabbar.enableTabCloseButton(true)
Command need to be executed before adding tabs. 
Answer posted by josh on Oct 27, 2008 05:25
hello,

thanks a lot for the info, just had another question:

on closing the tab, does it also take care of destroying the used memory by attached objects such as grid/toolbar?
Or should it be done manually?


thanks,
Answer posted by Support on Oct 27, 2008 06:09
The code will not call destructors of components automatically, but you can assing any custom code through setOnTabClose method, and call necessary destructors from there.