跳到主要内容

getSelectedTasks

Description

返回当前选中的任务的数组

getSelectedTasks: () => any[]

Returns

  • tasks - (array) - 任务的 ID 数组

Example

gantt.getSelectedTasks();

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.