I'm using Angularjs ui-grid and using the default settings, the question is how can I format the numbers to two decimal?
You can use the columnDefs cellFilter option:
columnDefs: [
{
field: 'name',
cellFilter: 'number: 2'
}
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With