Hi Guys,
Anyone have an ideia of how whe can format a value on the AG Grid like diz 23,235,125.23?
Regards,
MS
Hi Guys,
Anyone have an ideia of how whe can format a value on the AG Grid like diz 23,235,125.23?
Regards,
MS
Hello @miltonleopoldo,
Welcome to the community!
Right now, you can use the valueFormatter
with dangerously_allow_html=True
on both the table and columnDef you want to use.
This allows using JS to format, in the future, you won’t need the dangerously allow and use the JS. The goal is to include something like d3.
Something like this will work for now.
To use in ag-grid, pass ‘valueFormatter’:’Number(value).toLocaleString()’
to the columnDef you want formatted.
Thank you!
It solved my problem!