跳到主要内容

changeLightboxType

Description

根据任务的类型重新绘制该任务的 lightbox

changeLightboxType: (type: string) => void

Parameters

  • type - (required) string - 任务类型

Example

gantt.changeLightboxType(gantt.config.types.project);

Details

该方法会重新绘制该任务的 lightbox,并在可能的情况下保存所有输入。为重新构建结构,该方法使用 指定类型的配置

如果 lightbox 的类型与参数中的类型相同,则该方法不会重新绘制 lightbox。

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.