Check documentation for the latest version of dhtmlxSuite dhxWins DHTMLX Docs

dhxWins

link to dhtmlXWindows instance

dhtmlXWindows dhxWins;

Example

var myAcc = new dhtmlXAccordion(...);
 
// if windows js/css included on page,
// link to dhxWins available here,
// i.e. you can perform basic operations
myAcc.dhxWins.attachViewportTo("myViewport");
 
// undocking cell
myAcc.cells(id).undock();
 
// from this moment - you can see window
// with content detached from cell
var w1 = myAcc.dhxWins.window(id);
 
// now you can change window's settings
w1.setPosition(10, 10);
w1.setDimension(400, 400);
 
// if you need to open extra window,
// no needs to create another dhxWins instance, you can use current
// just make sure window id will not crossed with existing
// accordion cells ids
var w2 = myAcc.dhxWins.createWindow("w2", 1, 1, 100, 100);
w2.attachHTMLString("alert_message, ok/cancel buttons");
w2.button("close").hide();
w2.denyResize();
w2.denyPark();
w2.setModal(true);
w2.center();

Details
  • make sure you included corresponding windows js/css files on page
  • link to dhxWins available right after accordion inited
Back to top