Search
Contact Constructor
See Also
 






Initializes a new instance of the Contact class.

Namespace: MindFusion.Scheduling
File: Contact.js

 Syntax

JavaScript  Copy Code

function Contact ()

 Example

The following code creates a contact and adds it to the contacts collection of the schedule.  The code assumes you have initialized a <div> element with id “calendar” in a web page that references the JavaScript file which contains this code.

JavaScript  Copy Code

var p = MindFusion.Scheduling;

// create a new instance of the calendar
var calendar = new p.Calendar(document.getElementById("calendar"));

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

 See Also