Search
Contact.email Property
See Also
 






Gets or sets the email of the contact.

Namespace: MindFusion.Scheduling
File: Contact.js

 Syntax

JavaScript  Copy Code

get email() {}

 Property Value

A String that represents the e-mail.

 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";
resource.address = "1, Parkway str. Cambridge, MA";
resource.email = "e.noether@global-corp.com";
resource.phone = "(+1) 721 66 451 19";

calendar.schedule.contacts.add(resource);

 See Also