Search
The Schedule

The Schedule class represents the data displayed by MindFusion.Scheduling for JavaScript calendar views. The schedule contains a collection of schedule items implemented by the Item class. Item objects contain references to instances of the miscellaneous Task, Location, Contact and Resource classes, which are also contained in the respective collection members of the Schedule class.

The Schedule, in terms of the Document - View model, is the document that is rendered in the Calendar - the view. You would probably never create a Schedule instance by itself, but access it through the schedule property of the Calendar.

The following code creates a new location and adds it to the list with locations of a calendar schedule.

JavaScript  Copy Code

var p = MindFusion.Scheduling;
location = new p.Location();
location.name = name;
location.address = "1, King’s road";
location.city = "Cambridge";
location.country = "USA";
location.state = "MA";
location.zipCode = 12345;
calendar.schedule.locations.add(location);