Format currency helper

I have the below helper function which I have to use inside the table column.

I added this function in the advance section as a preloaded javascript.

But when I try to access it using window.formatEuro, gets an error window.formatEuro is not a function

export const formatEuro = (num) => {
return new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(num);
}

Fixed, I didn't assign the function to the window scope

Nice!

Thanks for updating us with the solution!