Search
Calendar.tasks Property
See Also
 






Gets the tasks whose schedule to display when the GroupType property is set to GroupByTasks or FilterByTasks.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

get tasks() {}
set tasks(value) {}

 Property Value

An ObservableCollection containing Task instances.

 Example

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

 See Also