Hi,
Is it possible to use custom render function for each cell in pivot datatable?
I have looked but failed to find any info about a render callback.
Thanks in advance,
SteveG
Hi,
You can customize pivot structure via onBeforeRender event. The events takes an arguments with 3 properties: “filters”, “header” and “data”. “header” is an array will columns configuration for datatable. So, you can add template property for columns:
on:{
onBeforeRender: function(config){
var columns = config.header;
for(var i=1; i < columns.length; i++){
// columns[i]
}
}
}