Search
Calendar.groupType Property
See Also
 






Gets or sets the grouping or filtering criteria for the calendar.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

get groupType() {}
set groupType(value) {}

 Property Value

One of the GroupType enumeration values. The grouping criteria.

 Example

The following function groups calendar items according to the GroupType value provided as parameter and assigns the value to the groupType property:

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 locations by which to group to the calendar.locations collection
  calendar.locations.addRange(calendar.schedule.locations.items());
 }
 calendar.groupType = value;
}

 See Also