Check documentation for the latest version of dhtmlxSuite Using Windows from Layout DHTMLX Docs

Using Windows from Layout

Sometimes using layout, you may need to show a pop-up window. If windows .js/.css files are included on the page, there is no need to create an extra windows instance, as the layout has one already (it was used for the "dock/undock" functionality)


// creating a layout instance
var myLayout = new dhtmlXLayoutObject("3L");
...
// creating a pop-up window from the layout's windows instance
var popupWindow = myLayout.dhxWins.createWindow("popupWindow", ...);


If you're using the "dock/undock" functionality at the same time, you need to make sure your windows ids and the layout's windows ids will not overwrite each other.


Remember: layout uses the same ids for windows and for its cells, i.e. "a", "b", "c" (depending on the pattern).


You'll find more details here.

Back to top