Search
Location.city Property
See Also
 






Gets or sets the city of the Location.

Namespace: MindFusion.Scheduling
File: Location.js

 Syntax

JavaScript  Copy Code

get city() {}

 Property Value

A String that represents the city.

 Example

The following code creates a new Location and adds it to the list with locations of a calendar schedule.

JavaScript  Copy Code
var p = MindFusion.Scheduling;
location = new p.Location();
location.name = name;
location.address = "1, King’s road";
location.city = "Cambridge";
location.country = "USA";
location.state = "MA";
location.zipCode = 12345;
calendar.schedule.locations.add(location);

 See Also