createUnitsView(configuration)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxscheduler_units.js

create a units view

Method accepts only one parameter - configuration object

scheduler.createUnitsView({
	name:"unit",
	property:"section_id",
	list:
		[	{key:1, label:"Section A"},
			{key:2, label:"Section B"},
			{key:3, label:"Section C"},
			{key:4, label:"Section D"}	],
	size:10,
	step:5
});
  • name - name of view
  • map_to - name of event property, to which view will be mapped
  • list - data structure, which contains info about x-scale of units view
  • size - optional, count of units on the screen ( if real count exceeds this value, scroll buttons will be shown )
  • step - step of scrolling