Vote count:
0
The grid options below display the data as expected. But If I try to to format the row.entity[col.field] value in my cellTemplate, I don't get any data returned. $scope.gridOptions = { enableSorting: true, columnDefs: [ {name: 'Award Title', field: 'projectTitle', minWidth: 100 }, {name: 'Amount', field: 'awardAmount', cellTemplate: '{{Number(row.entity[col.field]).toFixed(2).replace(/\d(?=(\d{3})+.)/g, '$&,')}} ] };
Any guidance on how to format the column as currency is appreciated.
Thanks.
asked 1 min ago
Format a ui-grid grid column as currency (RC 3.0)
Aucun commentaire:
Enregistrer un commentaire