Open atoohill opened 2 years ago
There is is bug at https://github.com/fooplugins/FooTable/blob/fba11d1d8ad4eb61913c7538b26283eab2d9d777/src/js/classes/columns/FooTable.NumberColumn.js#L55
A workaround is to define a custom formatter for the column:
"formatter": function(value, options, rowData) {
if (value == null) return '';
var s = (value + '').split('.');
s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, this.thousandSeparator);
return s.join(this.decimalSeparator);
}
@otovalek - we need some assistance to implement this workaround. How can I discuss with you privately?
When I define data-type="number" the comma is removed from the thousands separator in the output.
Trying to figure out how to have the comma included.