DHTMLX Touch documentation

Common Components Declaration

Common declaration lets you create any ui-related component and what component will be created comes out when call-number meets one of the certain key words. If call-number meets none of these words, a basic view will be created.

Key word Appropriate component
cols layout
rows
content content view
template template view
view:“SomeComponent” this SomeComponent
 
dhx.ui({
	rows:[ //layout
		{ height:30//view
		},
		{ cols:[//layout
			{ 	template:"left",//template view
				gravity:1
			},
			{	template:"center",//template view
				gravity:2
			}
		]},
		{ view:"toolbar", type:"MainBar", data:[{type:"label", label: 'Backpackr', align:"left"}] //toolbar
		}
	]
});