Salesforce junior here.

I am currently trying to display some price information in a lightning-datatable.

However, the result is formatted like it's seen in the US, while I want it the amount of money displayed like it's in Europe. For example, as seen in the pic below, the first value in the first row should be 10.71 € instead of €10.71.

are there attributes that I can use to change the format?

Thanks in Advance!

enter image description here

1 Answer 1


As menntioned in documentation here

lightning-datatable displays a currency using lightning-formatted-number.
See Displaying Currency and Percentages.

And we do NOT have such attribute in lightning-formatted-number

However you can always create your own data type ,
where you can display the Currency Symbol as you want.

The lightning-datatable component formats data based on the type you specify for the column. Before you create your own data type, check the standard data types to see if one meets your requirements. You can use type attributes to customize the output for many types.

Here some links which will help you with it :

Create a Custom Data Type
How to use custom LWC lightning component in lightning-datatable
Display Custom Data Type in Salesforce lightning-datatable

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .