Address
Extends Object. Address objects in Evance are automatically formatted using an internal formatter based on the address' country. However, the properties of the address are also individually accessible.
<h3>Our Address</h3>
<p>{{ shop.address }}</p>
<p>Come and visit us in {{ shop.address.city }}</p>
For Evance this would render as:
<h3>Our Address</h3>
<p>2 Sorrel Horse Mews
<br>
Grimwade Street
<br>
Ipswich
<br>
Suffolk
<br>
IP4 1LN
<br>
United Kingdom</p>
<p>Come and visit us in Ipswich</p>
Properties |
---|
city
String
The town/city for the address. |
company
String
The address company name. |
country
String
The country name for the address. |
countryCode
String
The 2 character ISO code for the country within the address. |
firstname
String
The person's first or given name. |
id
Number
The System ID of the Address. |
isPrimary
Boolean
True if the address is the primary address for a Contact. |
lastname
String
The person's surname / family name / last name. |
latitude
Number
The numeric latitude value of the address if it has been geolocated. |
line1
String
Line 1 of the address. |
line2
String
Line 2 of the address. |
line3
String
Line 3 of the address. |
longitude
Number
The numeric longitude value of the address if it has been geolocated. |
region
String
The county / state / province / region for the address. |
postcode
An alias of |
zip
String
The postal or zip code for the address. |
Methods |
---|
html()
String
Uses a built in formatter based on the address' country to produce an HTML formatted String representation of the address. |
join(separator)
String
Joins the address component parts according to a built in formatter based on the address' country. Parameters
Example
Renders as
|
text(separator)
Alias of join()
|
toString()
String
Returns the result of the html() method as a String
representation of the object.
|