跳到主要内容

touch

Description

启用/禁用甘特图的触控支持

touch: boolean | string

Example

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

Default value: true

Details

作为一个字符串,该参数只能取一个值 - 'force'

因此,该参数共有 3 种可能的取值:

  • true - dhtmlxGantt 通过分析浏览器的 user-agent 字符串来尝试检测是否存在触控设备;若检测到触控设备,则启用触控支持。
  • 'force' - 启用持续的触控支持,无论使用何种设备。
  • false - 关闭触控支持。
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.