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

How to change bar color?

Asked by Seong
15 days ago.

Is there any way to change the bar color? I tried durationBarColor attribute, but it's not working. Thank you.

var e = new DayPilot.Event({
start: new DayPilot.Date(dt+availabilitySet[j].start),
end: new DayPilot.Date(dt+availabilitySet[j].end),
id: availabilitySet[j].id,
text: response['data'][i].name,
durationBarColor: "red"
});

Answer posted by Dan Letecky [DayPilot]
15 days ago.

The right property name is "barColor". Here is a full list of event object properties:

https://api.daypilot.org/daypilot-event-data/

There is also an example that shows how to change the duration bar color using onBeforeEventRender in the documentation:

https://doc.daypilot.org/calendar/event-customization/

Comment posted by Seong
14 days ago.

Thank you, Dan. That did the trick. Loving your tools...

New Reply
This reply is
Your name (optional):