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
2 years 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]
2 years 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

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