跳到主要内容

autoscroll

Description

启用在拖动任务或将链接拖出当前浏览器屏幕时的自动滚动

autoscroll: boolean

Example

gantt.config.autoscroll = false;
gantt.init("gantt_here");

默认值: true

Details

请注意,直到版本 7.1.11 为止,使用 保留的视图及其用于滚动条的 ID 同时使用 autoscroll 选项。

// 水平滚动条:
{view: "scrollbar", id: "scrollHor"}
// 垂直滚动条:
{view: "scrollbar", id: "scrollVer"}

如果使用不同的名称,滚动条将工作,但 "autoscroll" 功能将不起作用。

从 v7.1.11 开始,滚动条可以使用任意名称。

Change log

  • 在版本 4.2 中添加
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.