Skip to main content

round_dnd_dates

Description

Enables rounding the task's start and end dates to the nearest scale marks

round_dnd_dates: boolean

Example

gantt.config.round_dnd_dates = false;
gantt.init("gantt_here");

Default value: true

Details

If you disable the property, Gantt will round the start and end dates of the dragged task to the nearest hour not to the nearest scale marks. In this case, you may use the time_step property to configure the step for dragging a task. See the example: