onLightboxChange

当 lightbox 结构更新时触发

void onLightboxChange(string old_type,string new_type);
old_typestring原始 lightbox 结构的名称
new_typestring更新后的 lightbox 结构名称

Example

gantt.attachEvent("onLightboxChange", function(old_type, new_type){
    if(new_type == "milestone"){
        alert("您已将任务类型更改为 'milestone'")
    }
});

Back to top