Skip to content

Formatting numbers (attribute values)

Reinier Sterkenburg edited this page Nov 27, 2015 · 1 revision

You can use propertyTypedata to 'style' the presentation of attribute values.

One aspect is the formatting of numerical values. You can define this using a 'stringFormat' property in a propertyType

​For example: "stringFormat" : "{0:#,#}" to have no decimals, and a thousands seperator

​The syntax of the formatting is explained http://www.masterdata.se/r/string_format_for_javascript/ and http://blog.stevex.net/string-formatting-in-csharp/

​A useful tool to quickly test it is: http://rextester.com/WIRC45327