Skip to main content

time_step

Description

Sets the minimum step (in minutes) for the task's time values

time_step: number

Example

gantt.config.time_step = 15;
...
gantt.init("gantt_here");

Default value: 60

Details

  • Start and end times of a task will have the values multiple of the time step, i.e. if time_step = 20, the task can start only at: 0, 20, 40 minutes etc.
  • The lightbox time selector will have the same time step.
note

note If you want a task to be dragged with the step set via the time_step property, you need to set the round_dnd_dates config to false.

gantt.config.round_dnd_dates = false;