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

Duration bar for some events only

Asked by Albert
2 years ago.

Is there any option to show/hide the duration bar for some events?

I'm trying to show the duration bar red color for some property and let the rest with the bar hidden.

If y try to color the bar with the same event background color, the top border disappears.

Kind regards.

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

You can use barHidden property of the event to hide the duration bar. You can add it to the source data object or you can add it using onBeforeEventRender:

dp.onBeforeEventRender = args => {
  args.data.barHidden = true;
};
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.