Skip to main content

lightbox

Description

Specifies the lightbox object

lightbox: any

Example

scheduler.config.lightbox.sections = [
{ name: "description", height: 50, type: "textarea", map_to: "text", focus: true },
{ name: "location", height: 43, type: "textarea", map_to: "event_location" },
{ name: "time", height: 72, type: "time", map_to: "auto" }
];
...
scheduler.init('scheduler_here', new Date(2027, 2, 1), "week");

Details

The lightbox object has 1 property:

  • sections - (array) specifies the lightbox sections
// default definition
scheduler.config.lightbox.sections = [
{ name: "description", height: 200, map_to: "text", type: "textarea", focus: true },
{ name: "time", height: 72, type: "time", map_to: "auto" }
];

Each object in the sections array can have the following properties:

Meaning of map_to: "auto"

The map_to property can take the "auto" value. The "auto" value relates to the following:

  • The control won't return any value and will directly change the value of the related event's properties according to the set_value() method (Custom Lightbox Control).
  • Generally, the "auto" value is used for complex controls that work with multiple properties of an event
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.