drag_timeline

configures the behavior of the dhtmlxgantt_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 ext/dhtmlxgantt_drag_timeline.js extension, so you need to include it on the page.

The config value can be either an object or null value, 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