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

How to change bar color?

Asked by Seong
3 years 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]
3 years 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
3 years ago.

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

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