Check documentation for the latest version 6.0 of dhtmlxSuite dhxWins DHTMLX Docs

dhxWins

link to dhtmlXWindows instance

dhtmlXWindows dhxWins;

Example

var myLayout = new dhtmlXLayoutObject(...);
 
// if windows js/css included on page,
// link to dhxWins available here,
// i.e. you can perform basic operations
myLayout.dhxWins.attachViewportTo("myViewport");
 
// undocking cell
myLayout.cells(id).undock();
 
// from this moment - you can see window
// with content detached from cell
var w1 = myLayout.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
// layuot cells ids
var w2 = myLayout.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 layout inited
Back to top