I am using primeUI to generate datatable. I want to format column text. below is my code to load primeUI datatable.
$('#tbl').puidatatable({
caption: 'Local Datasource',
columns: [
{field: 'legendText', headerText: 'Text'},
{field: 'legendPercentage', headerText: '%age'},
{field: 'legendValue', headerText: 'value'}
],
datasource: responseData
});
i want to format column text. Can anyone help me in this? i want value to be currency formatted. and %age column in two decimal format like this.
text| %age |value|
abc | 30.00 |123,3|