Layout is a concept that defines how elements will interact with and relate to other elements. The component lets to compose several items into a single page. Ui-related layout inherits from view.
To init the component you need to perform a simple procedure - call initialization code.
Initialization code or an object constructor gives you a choice: you can create an object directly or by using common declaration.
dhx.ui.layout({...})// direct declaration //or dhx.ui ({...})//common declaration
Whatever variant you choose it will include some of the following parameters:
Please note, layout is a derived class, i.e. it inherits all the features of the base class (layout →view).
dhx.ui({ type:"wide", rows:[{ id: "somelayout", height:250, width: 700 }] });
To use ui functionality, touchui.css and touchui.js files must be included.