跳到主要内容

toggleTaskSelection

Description

选择指定的任务(如果未被选中则选中,若已选中则取消选中)

toggleTaskSelection: (taskId: string | number) => void

Parameters

  • taskId - (required) string | number - 任务的 ID

Example

gantt.toggleTaskSelection("t_1"); 
gantt.render();

Details

注释

此方法在 multiselect 扩展中定义,因此需要激活 multiselect 插件。请在 Multi-Task Selection 文章中阅读详细信息。

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.