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

Duration bar for some events only

Asked by Albert
8 days 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]
8 days 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;
};
New Reply
This reply is
Your name (optional):