Search
Schedule Class
See Also
 






Represents a timetable of scheduled events. In the model-view architecture, Schedule instances are the documents whose data is displayed by Calendar instances, which are the views.

Namespace: MindFusion.Scheduling
File: Schedule.js

 Syntax

JavaScript  Copy Code

// class
Schedule.prototype = {}

 Example

The following method uses the schedule property of a calendar 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;
}

 Inheritance Hierarchy

MindFusion.Scheduling.Schedule

 See Also