Scheduler - How to show bubble for active area
Asked by Anonymous
3 years ago.
3 years ago.
I'm creating an active area inside an event for a top frozen row with the following configuration.
{
id: DayPilot.guid(),
text: '',
resource: resourceId,
start: new Date(item.date).subHours(12),
end: new Date(item.date),
backColor: 'transparent',
borderColor: 'transparent',
resizeDisabled: true,
moveDisabled: true,
areas: [
{
action: 'Bubble',
css: "scheduler_attendance-planning-service-comment",
html: '<img src="assets/icons/comment_small.png" height="16" width="16">',
bubble: new DayPilot.Bubble({
onLoad: function (args) {
console.log('test');
args.html = item.comment;
}
})
}
],
tags: {
type: 'PlanningComment',
data: item
}
}
However, the bubble doesn't show. The event onLoad isn't fired at all. Do you have any idea, what could cause this behaviour? Am I doing something wrong?
DayPilot