Search
Schedule.resources Property
See Also
 






Gets the collection of resources in this schedule.

Namespace: MindFusion.Scheduling
File: Schedule.js

 Syntax

JavaScript  Copy Code

get resources() {}

 Property Value

An ObservableCollection containing Resource instances.

 Example

The following method uses the schedule property to import the contacts and resources, 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.resources.clear();
 if (value == p.GroupType.GroupByResources) {
  // add the resources by which to group to the calendar.resources collection
  calendar.resources.addRange(calendar.schedule.resources.items());
 }
 calendar.groupType = value;
}

 See Also