.render.number + data
.render.number + data
fedegiro
Posts: 10Questions: 5Answers: 0
Hi!
I have two columns with some number values (type="natural"). I'm using .render.number to have proper thousand separators. The values of the 2nd column can have two different units ("U" or "Tn"). I need to write the unit as a postfix of the 2nd column value, but i don't know how to. Example: 1.400 U, 3.200 Tn, 2.000 U.
Here's the fiddle: https://jsfiddle.net/6y6gssg8/4/
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Unfortunately the built in number renderer doesn't provide a conditional option for its postfix parameter. You would need to write your own renderer to do that I'm afraid.
You could use the built in number renderer as the basis for your own code.
Allan
Thanks Allan.