Search
Calendar.schedule Property
See Also
 






Gets or sets the schedule to be displayed inside the calendar.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

get schedule() {}
set schedule(value) {}

 Property Value

An instance of the Schedule class.

 Example

The following method uses the schedule property to import the locations and contacts, by which calendar items should be grouped.

JavaScript  Copy Code
function group(value) {
 calendar.contacts.clear();
 if (value == p.GroupType.GroupByContacts) {
  // add the contacts by which to group to the calendar.contacts collection
  calendar.contacts.addRange(calendar.schedule.contacts.items());
 }
 calendar.locations.clear();
 if (value == p.GroupType.GroupByLocations) {
  // add the resources by which to group to the calendar.locations collection
  calendar.locations.addRange(calendar.schedule.locations.items());
 }
 calendar.groupType = value;
}

 See Also