Search
Calendar.contacts Property
See Also
 






Gets the contacts whose schedule to display when the GroupType property is set to GroupByContacts or FilterByContacts.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

get contacts() {}
set contacts(value) {}

 Property Value

ObservableCollection. A collection with Contact instances.

 Example

The following code adds a new Contact to the contacts collection of a Calendar.

JavaScript  Copy Code

var resource;

// add some contacts to the schedule.contacts collection
resource = new p.Contact();
resource.firstName = "Emmy";
resource.lastName = "Noether";
calendar.schedule.contacts.add(resource);

 See Also