Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by RonP on Apr 22, 2009 17:31
open dhtmlx forum
Detach Toolbar

How do I detach a toolbar from a layout panel that was added via .attachToolbar();
Answer posted by Alex (support) on Apr 23, 2009 06:55

Hello,

there is no API to do that. But you can try to use the following approach basing on internal properties: 

dhxLayout.cells("a").window._content.childNodes[1].innerHTML = "";
dhxLayout.cells("a").toolbar = null;
dhxLayout.cells("a").window._content.childNodes[2].style.top = 0 + "px";

Where "a" is cell id.