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

How to change bar color?

Asked by Seong
1 year 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]
1 year ago.

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

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

Comment posted by Seong
1 year ago.

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

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