Form is a component that presents a page section containing special elements called controls (check boxes, radio buttons, etc.). Ui-related form 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:"form", ...})
In constructor you can specify the following parameters:
Please note, form is a derived class, i.e. it inherits all the features of the base class (form → view).
dhx.ui({ rows:[{ view:"form", id:"leftbar", data:[ { type:"button", id: "field_a", value: 'Save', align:"right", label:"Save" }, { type:"calendar", id: "field_b", label: 'Date' }] }] ... });
To use ui functionality, touchui.css and touchui.js files must be included.