Skip to main content

preserve_length

Description

Preserves the visible length of an event while dragging along a non-linear time scale

preserve_length: boolean

Example

scheduler.config.preserve_length = true;

Default value: true

Applicable views: Month view, Timeline view

Details

Mode is enabled by default.

When the mode is enabled, an event preserves the visible length, instead of the actual length (defined by start and end dates ) during the drag-and-drop operation.
Let's assume that you have a two-day event in the Month view and the weekends are hidden. If you drag the event and place it to occupy Friday and Monday length, the real difference between start and end day will be 4 days, but the scheduler will preserve the visible length - 2 days.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.