Euro symbol on the right
Euro symbol on the right
bucanero
Posts: 15Questions: 2Answers: 0
Hi, I have a table with a column that has to show amounts in euros.
With this configuration, it works ok:
{ render: $.fn.dataTable.render.number( '.', ',', 2, '€' ), aTargets:8 }
But euro symbol is on the left. Is it possible to put it on the right?
Thanks
This discussion has been closed.
Replies
The forth parameter in the number renderer is a prefix. Use the optional fifth parameter to postfix - see the documentation.
Allan
Thanks Alllan, but this: $.fn.dataTable.render.number( '.', ',', 2, '', '€') No works.
Nothing of what I put in the fifth parameter is displayed, even if I use the fourth parameter.
If I want to use only the fifth parameter, what I have to put in the forth?
Thanks
I've got v1.10.3 and I've seen, in v.1.10.11, there are all right (with prefix and postfix)
Thanks.
That is correct - the optional fifth parameter was added in newer versions of DataTables.
Allan