round_dnd_dates

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

boolean round_dnd_dates;

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:

Related sample:  Gantt. Drag'n'drop of tasks with the minimum step

Back to top