Constructor is used to create an object, to set its initial parameters.
There are some ways to do it:
var layout = new dhtmlXLayoutObject(parent, view, skin)
<div id="parentId" style="width:500px; height:150px;"></div> <script> // common init code var layout = new dhtmlXLayoutObject("parentId"); </script>
or object itself
//fullscreen init var layout = new dhtmlXLayoutObject(document.body, "3L");
Layout, Window, Accordion, Tabbar can create a layout inside their cells by using
some_component.cells(some_id).attachLayout();
Starting from 2.5 version, layout can be initialized by object notation.
layout = new dhtmlXLayoutObject({ parent: document.body, skin: "dhx_blue", onExpand: function(){ alert("I'm clicked"); } });
The list of all supported options you can see here