甘特图 API方法changeLightboxType页面内容changeLightboxType Description 根据任务的类型重新绘制该任务的 lightbox changeLightboxType: (type: string) => voidParameters type - (required) string - 任务类型 Examplegantt.changeLightboxType(gantt.config.types.project);Details该方法会重新绘制该任务的 lightbox,并在可能的情况下保存所有输入。为重新构建结构,该方法使用 指定类型的配置。如果 lightbox 的类型与参数中的类型相同,则该方法不会重新绘制 lightbox。Related API onLightboxChange 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.