Globally set the thousand and decimal separator
Globally set the thousand and decimal separator
zexxar
Posts: 9Questions: 4Answers: 0
Hello,
I wanted to ask if it is possible to set ',' as the global default decimal separator so that I don't always have to use the Number helper $.fn.dataTable.render.number( '.', ',' ) as renderer for my columns. Because I'm getting the data as JSON and there the numbers come with a '.' as separator but I always want to display them with a ','.
Thanks in advance
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @zexxar ,
You'll need to use that renderer, as in this example here, as you're changing the format of the text.
Cheers,
Colin
Okay thanks for the answer that's how I'm already doing it but I hoped that maybe there is a way to for every number column.