How to add cssClass property per rowHeaderColumn in Tabular mode
6 years ago.
In Legacy mode, we were able to add the additional cssClass property per rowHeaderColumn, so we could give a particular rowHeaderColumn a background depending on some data.
resources : [{
id: 1,
name: 'abc',
columns: [
{ html: 'def', cssClass: 'dark' }, // This would appear in the second rowHeaderColumn
{ html: 'ghi', cssClass: 'light' } // This would appear in the third rowHeaderColumn
]
}];
Is it still possible in tabular mode somehow? I don't see how it will fit in the example below:
resources = [
{ id: "101", name: "Room 101", location: "Floor 1", type: "single" }
];
resource = [
{ id: "101", tags: { name: "Room 101", location: "Floor 1", size: "2 beds" } }
];
A concept solution could be to add some extra data in the json result and use the DayPilot.Scheduler.onBeforeResHeaderRender event to read that data and apply the cssClass from there, but that seems a bit odd while it was natively available in the Legacy mode.
Could you help me out to find the correct solution?
Thanks in advance!
DayPilot