eventRendered={this.onEventRendered.bind(this)}onEventRendered (args: Object) {
const taskType = getLodash(args.data, 'type');
if(taskType === TASK) {
const taskColor = getLodash(args.data, 'statusColor');
args.element.classList.add(TASK);
args.element.style.backgroundColor = taskColor;
}
}Please let me how task will be cusotmized in the popup. Please find attached screen shot.
|
onPopupOpen(args) {
if (args.type == "EventContainer") {
let length = args.data.event.length;
for (let i = 0; i < length; i++) {
if (args.data.event[i].TaskType == "Task") {
(args.element.querySelector(`[data-guid="${(args.data).event[i].Guid}"]`)).style.backgroundColor = "blue";
}
}
}
} |
Hi, nice solution, it works for me! How would you align the arrows on the right when the task is longer than the selected period?
Thank you,
Matteo Messmer