material-table icon indicating copy to clipboard operation
material-table copied to clipboard

currencySetting is not defined

Open eloyrubinos opened this issue 6 years ago • 2 comments

Hi,

I need to display a currency column in a table and I was going to try and do it using the currency column type prop, but it displays USD by default. I've noticed there exists a currencySetting prop in docs which accepts an object and I guess I would be able to specify the currency there, but I can't find any definition or example for the object.

eloyrubinos avatar Mar 30 '20 07:03 eloyrubinos

I was also looking for this. Going through the TypeScript definition, I think it should be something like this: { locale?: string, currencyCode?: string, minimumFractionDigits?: number, maximumFractionDigits?: number }

anarcometin avatar Apr 03 '20 10:04 anarcometin

That works, thank you :)

eloyrubinos avatar Apr 07 '20 06:04 eloyrubinos