Check documentation for the latest version of dhtmlxSuite undock DHTMLX Docs

undock

undocks content from accordion cell to the window

void undock( [number x,number y,number width,number height] );
xnumberoptional, window x-position
ynumberoptional, window y-position
widthnumberoptional, window width
heightnumberoptional, window height

Example

var myAcc = new dhtmlXAccordion({
    parent: "accObj",
    items: [
        {id: "a1", text: "Red", open: true},
        {id: "a2", text: "Green"},
        {id: "a3", text: "Blue"}
    ]
});
myAcc.cells("a1").undock();
// or 
myAcc.cells("a1").undock(10, 10, 320, 200);

Change log

params: x, y, width, height - added in version 4.0

Back to top