How do i make different color header in below pivot table
What will be my css. It seems whatever i applied it applies to all the 3 rows in header and also as you can see fonts are selectively White.
|
headerCellInfo(args) {
(this.pivotObj.renderModule as any).columnCellBoundEvent(args);
//triggers every time for header cell while rendering
if (args.cell && args.cell.column && args.cell.column.customAttributes) {
args.node.classList.add(
'level' + args.cell.column.customAttributes.cell.rowIndex
);
}
}
enginePopulated(args) {
this.pivotObj.grid.headerCellInfo = this.headerCellInfo.bind(this);
} |
Hi
Is there a way to change the font color, because in example above i could not change the font color. and also when collapsing and expand. it changes font color from white to black again
|
<style>
.e-pivotview .e-columnsheader.level0,
.e-pivotview .e-columnsheader.level0 .e-cellvalue,
.e-pivotview .e-columnsheader.level0 .e-stackedheadercelldiv,
.e-pivotview .e-columnsheader.level0 .e-headertext {
background-color: aquamarine !important;
color: white !important;
}
.e-pivotview .e-columnsheader.level1,
.e-pivotview .e-columnsheader.level1 .e-cellvalue,
.e-pivotview .e-columnsheader.level1 .e-stackedheadercelldiv,
.e-pivotview .e-columnsheader.level1 .e-headertext {
background-color: thistle !important;
color: white !important;
}
.e-pivotview .e-columnsheader.level2,
.e-pivotview .e-columnsheader.level2 .e-cellvalue,
.e-pivotview .e-columnsheader.level2 .e-stackedheadercelldiv,
.e-pivotview .e-columnsheader.level2 .e-headertext {
background-color: lightblue !important;
color: white !important;
}
</style> |