Welcome, Guest Login

Support Center

Introduction to Formatters ~ Functions

Last Updated: Oct 25, 2016 12:43PM EDT

Formatters ~ Functions


Introduction
Formatters are operators for multiple purposes.
They are used to Add, Multiply,  Divide but also Strip HTML, Uppercase a sentence etc..
Formatters can be used with

  • Data Source
  • Variable (Key-Value)

For a full list of Formatter, see Formatters List

Usage

​Formatter are appended to the last part of the expression (Data Source or Variables) and are separated by a colon.
 

[[ Expression:Formatter ]]

Example

[[ds:/Stars/actor/name:upper]] is all caps, [[ds:/Stars/actor/name]] isn't.

Will yield:

  BRAD PITT is all caps, Brad Pitt isn't.

Multiple Formatters

You can use multiple on the same expression:

  • The first one begins with a colon
  •  Successive ones use the pipe “|” character to indicate the start of another formatter, for example

  [[ds:/Stars/actor/name:upper|html]]


This example will first apply the “upper” formatter and subsequently the “html” formatter.
 

Creating Formatters

Here we provide a list of all the standard formatters, readily available. 
Using native code, you can also create your own Custom Formatter.


Learn More

- List of Formatters
Conditional Expressions with HTML/CSS
Expressions
Introduction to Custom Expanders and Formatters
Create your own Formatter with Native Code

Help us improve! Rate this article:

Yes I found this article helpful

Ask a Question   

support@eachscape.com
http://assets1.desk.com/
false
eachscape
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete