Hello,
I have a problem with events and resources backgrounds. For some of my events, I use the repeating-linear-gradient() CSS function. It works great, but when I do my export, I have a black background.
For the resources, the background stays always white.
Hope that you have a solution.
Answer posted by Dan Letecky [DayPilot] 5 years ago.
The image export only supports a limited set of CSS styles. The Scheduler tries to detect the background color but if you use an unsupported background style it will fail.
You can override the auto-detected background color using onBefore*Export event handlers (use args.backColor property):
Just with this code it's did'n work
dp.onBeforeEventExport = function(args) {
args.backColor = "#ff0000";
};
I try like this
dp.onBeforeEventExport = function(args) {
args.backColor = "#ff0000";
args.e.data.backColor = args.backColor;
};
It updates my schedule after export.
My version of DayPilot Pro is 2279. What should I do to get the latest version?
Comment posted by Dan Letecky [DayPilot] 5 years ago.