Referring to the post
viewtopic.php?p=56980#p56980
I am using bryntum scheduler as angular wrapper, help/guide how to use onEventDataGenerated in angular with typescript, also suggest if there is any other way
I tried putting it in ngAfterViewInit, even setting timeRangesresources to true, but it never gets called
this.scheduler.schedulerInstance.onEventDataGenerated((renderData) => {
console.log('render', renderData);
const record = renderData.event;
console.log('event', record);
if (record.isResourceTimeRange) {
// Get bg color from the record. Not necessarily from the timeRangeColor field.
renderData.style = `background-color: ${record.timeRangeColor};`;
}
});