You need to sign in to do that
Don't have an account?
Julien Salenson
lightning:datatable format number without digit
Hi,
I'm using a lightning:datatable in a lightning component.
My controller set a column using currency :
{label: 'My label for currency', fieldName: 'my_currency_number',
type: 'currency',sortable : true,
cellAttributes: { class: { fieldName: 'showClass'}}
},
Today, my problem is :
I have this result : 234,00 €
And I would like to remove digits, and I would like to have this result :
234 €
How can I do that?
Thanks for your help,
Julien
I'm using a lightning:datatable in a lightning component.
My controller set a column using currency :
{label: 'My label for currency', fieldName: 'my_currency_number',
type: 'currency',sortable : true,
cellAttributes: { class: { fieldName: 'showClass'}}
},
Today, my problem is :
I have this result : 234,00 €
And I would like to remove digits, and I would like to have this result :
234 €
How can I do that?
Thanks for your help,
Julien