drag_timeline

configures the behavior of the drag_timeline extension

object drag_timeline;

Example

gantt.config.drag_timeline = {
    ignore:".gantt_task_line, .gantt_task_link",
    useKey: false
};


Default value:

{ useKey: false, ignore: ".gantt_task_line, .gantt_task_link" }

Related samples

Details

This option is defined in the drag_timeline extension, so you need to activate the drag_timeline plugin.

The config value can be either an object or the null value, the null value disables the extension.

gantt.config.drag_timeline = null; // disables the extension

The drag_timeline object includes two properties:

  • ignore - (string) CSS selector. Scrolling the timeline won't be activated for the elements that match the selector.
gantt.config.drag_timeline = {
    ignore:".gantt_task_line, .gantt_task_link",
    useKey: false
};
  • useKey - (string|boolean) if the property is specified, scrolling the timeline will be activated only when the specified modifier key is pressed. Supported values: "ctrlKey", "shiftKey", "metaKey", "altKey".
Back to top