DHTMLX Docs & Samples Explorer

createUnitsView(name, map_to, options)

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

create a units view

  • name - name of view
  • map_to - name of event property, to which view will be mapped
  • options - data structure, which contains info about x-scale of units view
	scheduler.createUnitsView("unit","section_id",[
		{key:1, label:"Section A"},
		{key:2, label:"Section B"},
		{key:3, label:"Section C"},
		{key:4, label:"Section D"}
	]);