Forum Discussion
Sijo1995
05-11-2023Cloud Apps
Hi HamzaJ ,
Please try this script
widget.transformPivot({
type: ['member','value']
}, (metadata, cell) => {
const { columns, rows } = metadata;
const isRowHeader = rows && rows.some(row => row.title === cell.content);
// is header
if (isRowHeader || columns && !rows) {
cell.style = {
fontWeight: 'bold',
color: '#132f57',
backgroundColor: '#e2e9ec',
textAlign: 'center',
whiteSpace: 'normal'
}
// is row
} else {
cell.style = {
fontWeight: 'bold',
color: '#132f57'
}
}
//cell.style.whiteSpace= 'normal'
});
Thanks
Sijo