Search
Contact Class
See Also
 






Represents an object that holds contact data for a person.

Namespace: MindFusion.Scheduling
File: Contact.js

 Syntax

JavaScript  Copy Code

// class
Contact.prototype = {}

 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);

 Inheritance Hierarchy

MindFusion.Scheduling.Resource
    MindFusion.Scheduling.Contact

 See Also