Field Currency
Field Currency
impex09
Posts: 45Questions: 20Answers: 0
Hi, I have a field named "payment" in my database is type float,
In the datatable only show the number like this: 4567.56 I would like set a mask to show like this: $4,567.56 how I can do it?
This discussion has been closed.
Replies
Checkout this page:
https://datatables.net/manual/data/renderers
You will want to use
columns.render
.Kevin
Thank you, I resolved it using this:
{
data: 'price',
render: $.fn.dataTable.render.number( ',', '.', 2, '$' )
}