Merge pull request #29 from lora322/ai-dev
Change column type to string and add value formatter
This commit is contained in:
commit
336e151889
@ -117,7 +117,16 @@ export const loadColumns = async (
|
|||||||
|
|
||||||
editable: hasUpdatePermission,
|
editable: hasUpdatePermission,
|
||||||
|
|
||||||
type: 'number',
|
type: 'string',
|
||||||
|
valueFormatter: ({ value }) =>
|
||||||
|
value != null
|
||||||
|
? Number(value).toLocaleString('en-US', {
|
||||||
|
style: 'currency',
|
||||||
|
currency: 'CAD',
|
||||||
|
minimumFractionDigits: 2,
|
||||||
|
maximumFractionDigits: 2,
|
||||||
|
})
|
||||||
|
: '',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user