Undock Tab

Ok, I’m trying to implement an example dock/undock tab sample sent me:

dhtmlx.com/docs/products/kb/inde … =1&q=10423





I’ve wrapped the code as I need it, but while the tabs display with the undock icon showing, double-click doesn’t appear to do anything. Hope you can shed some light on this. Thanks in advance.



Here’s the code:






























































This example was just a possible solution. It denonstrates how to hide show tabs and window (there is no doubleclick handler).


You should set own double click event handler to the tab. Tab name can contain any html. So, you can set onclick handler to the element inside tab:


dhxPXTabbar.addTab(“t1”,"<div …>Tab 1")