I need for the parent resource a different color
so AUhof = dark green
Buhr Sabine - should be light green
but the first group get the color but the second not.. I need to identify the parent group... but how?
if (args.elementType === "resourceHeader") {
const schedule = this.$refs.schedule as ScheduleComponent;
const resourceDetails: any = schedule.getResourcesByIndex(args.groupIndex);
const groupIndex = args.groupIndex;
debugger;
if (groupIndex % 2 === 0) {
args.element.style.backgroundColor = "#e4f3f8";
} else {
args.element.style.backgroundColor = "#def8da";
}
if (resourceDetails.resource.colorField) {
args.element.style.backgroundColor =
resourceDetails.resourceData[resourceDetails.resource.colorField];
}
