跳到主要内容

onTaskRowClick

Description

当用户点击表格中的一行时触发

onTaskRowClick: (id: string | number, row: HTMLElement) => void;

Parameters

  • id - (必填) string | number - 任务 ID
  • row - (必填) HTMLElement - 被点击行的 HTMLElement

Example

gantt.attachEvent("onTaskRowClick", function(id,row){
// 在这里插入您的自定义逻辑
});
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.