createUnitsView(configuration)

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

creates a units view

Method accepts the only parameter - configuration object

var sections=[
	{key:1, label:"Section A"},
	{key:2, label:"Section B"},
	{key:3, label:"Section C"},
	{key:4, label:"Section D"}
];
 
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"}	],
        skip_incorrect:true,
	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
  • skip_incorrect - skips events which belong to none of the units. By default, false.
  • size - optional, count of units on the screen ( if real count exceeds this value, scroll buttons will be shown )
  • step - step of scrolling