Window is a component that presents a standard on-screen window. Ui-related window inherits from view.
To init the component you need to perform a simple procedure - call initialization code.
Initialization code or an object constructor, lets you create an object by using common declaration.
dhx.ui ({view:"window", ...})
Please note, Window is a derived class, i.e. it inherits all the features of the base class (window → view).
dhx.ui({ view:"window", head:{ view:"toolbar", type:"MainBar", data:[{type:"label", label:"Window"}] }, body:{ type:"clean", rows:[ {template:"do something"}, {view:"toolbar", type:"BigBarV", height:110, data:[{type:"button", label:"Ok"}, {type:"defaultbutton", label:"Cancel"}] }] }, top:20, left:20, move:true })
To use ui functionality, touchui.css and touchui.js files must be included.