format options for numeric data

Questionsformat options for numeric data
Massimo Gagliardi asked 6 years ago

With this definition:
$col["formatter"] = "number";
$col["formatoptions"] = array("thousandsSeparator" => ",",
"decimalSeparator" => ".",
"decimalPlaces" => '2');
you can view:

With this definition (italian country):
$col["formatter"] = "number";
$col["formatoptions"] = array("thousandsSeparator" => ".",
"decimalSeparator" => ",",
"decimalPlaces" => '2');
you can view:
Thanks in advance for suggestions

2 Answers
Abu Ghufran answered 6 years ago

Use "decimalPlaces" => 2; without quote ('')

Massimo Gagliardi answered 6 years ago

Thank you
But in the documentation there are the quote.

Your Answer

8 + 4 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!