When using aggFunc in a column definition, the headerName appears in the format func(string) instead of just displaying the string as defined. This behavior is not present when AggFunc is null.
const columnDef: any = {
headerName: 'Test',
field: date,
suppressMenu: true,
width: 80,
editable: true,
lockPosition: true,
type: 'numericColumn',
aggFunc: function(data) {
let sum = 0;
data.forEach( function(value) {
if (value) {
sum = sum + parseFloat(value);
}
} );
if (!sum) { return null; }
return sum.toFixed(2);
},
}
Even though the headerName is set to say "test", it will actually display as func(test).