Gets the tasks whose schedule to display when the GroupType property is set to GroupByTasks or FilterByTasks.
Namespace: MindFusion.Scheduling
File: Calendar.js
JavaScript Copy Code |
---|
get tasks() {} |
An ObservableCollection containing Task instances.
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; } |