Popup is a component that represents a standard pop-up. Ui-related popup 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 object by using common declaration.
dhx.ui ({view:"popup", ...})
In constructor you can specify the following parameters:
Please note, Popup is a derived class, i.e. it inherits all the features of the base class (popup → view).
dhx.ui({ id:"yellow", view:"popup", body:{ template:"<div style='width:100%; height:100%; background-color:yellow;'>I'm a popup</div>" }, left:500 })
To use ui functionality, touchui.css and touchui.js files must be included.