Example Helpers
Calculate 5% of a months rent
For this example, we are using the Tenancy Datasource. And we want the resulting output on the template to produce 5%...
Wed, 11 May, 2016 at 6:42 PM
Example Date Format Helpers
For this example we are using dates from two different data sources, viewing and tenancy data sources.
Example...
Fri, 13 May, 2016 at 12:48 PM
Create a QR Code
Create a QR code from a proposal website link.
Helper - Start {{#qrcode}} End {{/qrcode}}
This needs to be wrapped around...
Fri, 13 May, 2016 at 12:37 PM
Format the postcode for the URL
In this example, we have to alter the way the postcode is formatted to work for a google maps link.
Helper - ...
Fri, 13 May, 2016 at 12:19 PM
Total Rent and Deposit
For this example, we are going to total rent and deposit.
Totalling Rent + Deposit and displaying as £ format
...
Fri, 13 May, 2016 at 12:03 PM
Capitalise first letter and lowercase remaining
Helper - capitalizeFirst
This helper formats the first word to a Capital
Helper - lowerc...
Fri, 13 May, 2016 at 12:07 PM
Shorten a long paragraph
Helper - truncate
This helper reduces the amount of text, to a fixed number.
Parameter
This is...
Fri, 13 May, 2016 at 12:11 PM
Example: Agency URL in Proposal List
In this example, we want to display the Agency URL, that is a field outside the proposal list group of fields....
Fri, 13 May, 2016 at 12:27 PM
Excess White Space
Template whitespace may be omitted from either side of any mustache statement by adding a `~` character by the braces. When app...
Fri, 13 May, 2016 at 12:30 PM
Example: Sales Offer Datasource
{{#each saleOffer.events as |items|}}
{{this.0.categoryTitle}} stages completed:
{{#each this}}
* {{da...
Fri, 13 May, 2016 at 12:31 PM