getLabel(property, key)

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

returns label text by option's id and property name

  • property — map_to parameter of the option
  • key — option's id

For example, following code was used to create select:

var sections=[
	{key:1, label:"James Smith"},
	{key:2, label:"John Williams"},
	{key:3, label:"David Miller"},
	{key:4, label:"Linda Brown"}
];
scheduler.config.lightbox.sections=[	
	{name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
	{name:"custom", height:23, type:"select", options:sections, map_to:"section_id" },
	{name:"time", height:72, type:"time", map_to:"auto"}
]

To get “Linda Brown” label one should use:

scheduler.getLabel("section_id", 4)