跳到主要内容

touch

Description

控制甘特图是否启用或禁用 touch 支持

touch: boolean | string

Example

gantt.config.touch = "force";
...
gantt.init("gantt_here");

Default value: true

Details

当设置为字符串时,唯一接受的值是 'force'


该参数有三种可能的选项:

  • true - dhtmlxGantt 会通过检查浏览器的 user-agent 字符串来尝试检测设备是否支持 touch,如果检测到支持 touch 的设备,则启用 touch 支持。
  • 'force' - 无论使用何种设备,都强制启用 touch 支持。
  • false - 完全禁用 touch 支持。
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.