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

Feature: Display in new line if event overlaps htmlLeft / htmlRight of another event.

Asked by Markus Peter
1 month ago.

Hello

A nice feature would be an additional mode, where an event will be moved into a new line if it would overlap the htmlLeft / htmlRight areas of another event, even if it does not overlap the actual event time.

Answer posted by Dan Letecky [DayPilot]
1 month ago.

The element that displays htmlLeft/htmlRight content has variable width and it's not possible to calculate the real width without expensive pre-rendering.

However, you can use a workaround:

You can reserve a defined space around an event by adding an event version to it:

https://doc.daypilot.org/scheduler/event-versions/

If you enable the "eventVersionsReserveSpace" mode the date/time range occupied by the versions will block other events at the same position:

https://api.daypilot.org/daypilot-scheduler-eventversionsreservespace/

If you set the event version height to 0 the versions won't be visible but they will keep the blocking effect.

Event versions can also be used to display text above events, like in this tutorial:
https://code.daypilot.org/21607/javascript-scheduler-displaying-text-above-events

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):