search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

warm-up and cool-down on Resource Calendar

Asked by Romux
4 years ago.

Hello,

i want to try something like this: https://code.daypilot.org/82331/javascript-scheduler-warm-up-and-cool-down-time
on the Resource Calender. Warm-Up areas should not appear from left to right but from top to down.

I tried it in many ways like that:

dp.onBeforeEventRender = function(args) {
args.e.areas = [
{
start: args.data.start,
end: args.data.start.addMinutes(40),
left:0,
right:0,
backColor: "#ccc"
}
];
}

But areas are not shown.

Thanks for your help

Comment posted by Romux
4 years ago.

I found a way to do this now.

args.e.areas = [
{ height: 40px, cssClass: "semi-transparent", left: 4, bottom: 1, right: 1, backColor: "#bfbfbf", html: "<div style='height: 40px'></div>" + umlagerungszeit + "min Umlagerungszeit", style: "font-size: 10px; padding: 0px 0px 0px 2px; color: #1a1a1a"},
];

Answer posted by Dan Letecky [DayPilot]
4 years ago.

The Calendar component now supports area.start and area.end properties for event active areas. These date/time values will be used to calculate the vertical position.

It's available since version 2019.3.4012:
https://javascript.daypilot.org/daypilot-pro-for-javascript-2019-3-4012/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.