answered
2014-04-22 09:49:31 +0800
chillworld 5367 ● 4 ● 9
https://github.com/chillw...
2 options :
ZK have provided some built-in application level converters that are commonly used.
You can use them with name and parameters: @converter('converterName', parameterKey='value')
.
Currently, built-in converter we provide are :
- formattedNumber
- formattedDate
Usage :
<label value="@load(item.price) @converter('formatedNumber', format='###,##0.00')"/>
<label value="@load(item.creationDate) @converter('formatedDate', format='yyyy/MM/dd')"/>
You should specify number or date pattern in format parameter's value for formattedNumber converter or formattedDate converter.
Option 2 :
Use a custom convertor in stead of the format from doubleBox.
Edit :
An example for your cause on zk fiddle.
Greetz chill.