...
Code Block | ||
---|---|---|
| ||
- label: 'Amount'
key: 'lineAmount'
type: 'number'
showInTableHeader: false
showInDetailList: true
options:
maximumFractionDigits: 2
currencyCode: USD |
The two options are not mandatory:
maximumFractionDigits
determines the maximum amount of digits after the decimal point.currencyCode
accepts a 3-Letter ISO code, likeEUR
. If set, all other options are ignored and the number will be formatted with the given currency. For Euro, it would be314,14 €
Date
type: date
This column type is used to declare data as date. Make sure that you declare the data backend-wise in the correct format: 2018-02-28
or 2018-02-28 18:33:56.01
. A date-field shown in the User-Frontend will not contain the time-part.
How a date will be presented to the user depends on his used browser language, for example given the above date will look this:
...