var ColumnDefinitions = [{
headerName: "Column A",
field: 'colA',
rowGroup: true
},
{
headerName: "Column B",
field: 'colB',
pivot: true,
enablePivot: true
},
{
headerName: "Column C",
field: 'colC',
rowGroup: true
},
{
field: 'colD',
aggFunc: 'first',
valueFormatter: currencyFormatter,
tooltip: function(params) {
return (params.valueFormatted);
},
},
{
field: 'customTooltip',
tooltipField: 'comment'
},
{
field: 'colF'
}
];
function currencyFormatter(params) {
return params.value;
}
The code snippet above is taken from a previous question. While it works, I am looking to customize the tooltip for the 'colD' field using a different 'comment' field. This customization is needed due to the use of group and pivot in the ag-Grid configuration. Any suggestions on how to achieve this for group and pivot ag-Grid setups would be highly appreciated.