Checkbox

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

This type of editor creates a single checkbox in the header of the section. Body of the section is not displayed.

Here's the code snippet of how it could be added:

scheduler.config.lightbox.sections=[	
	// other sections
	{ name:"checkme", map_to:"single_checkbox", type:"checkbox", checked_value: "registered", unchecked_value: "not_registered" }
];

Following options are used:

  • name - name of the editor
  • map_to - property of the event maped to the editor
  • type - editor's type
  • checked_value - optional, this value will be returned if checkbox is checked. By default true is used.
  • unchecked_value - optional, this value will be returned if checkbox is unchecked. By default false is used.

Example of how such editor looks like: