跳到主要内容

onLightbox

Description

当用户打开 lightbox(编辑表单)时触发一次

onLightbox: (task_id: string | number) => void;

Parameters

  • task_id - (required) string | number - 在 lightbox 中打开的任务 ID

Example

gantt.attachEvent("onLightbox", function (task_id){
// 可以在这里添加自定义逻辑
});
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.