Перейти к основному содержимому

drag_timeline

Description

Настраивает поведение расширения drag_timeline

drag_timeline: null | { ignore?: string; useKey?: string | boolean; render?: boolean; }

Example

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

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

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 the following properties:

  • ignore - (string) - CSS-селектор. Прокрутка таймлайна не будет активирована для элементов, которые соответствуют селектору

  • useKey - (string | boolean) - если свойство указано, прокрутка таймлайна будет активирована только при нажатии указанного модификаторного ключа. Поддерживаемые значения: "ctrlKey", "shiftKey", "metaKey", "altKey"

  • render - (boolean) - если свойство включено, прокрутка таймлайна будет повторно отрисована, когда прокрутка начата и когда она завершится

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.