Change

fires on changes in the dataset of the diagram

void Change( [string|number id,string status,object shape] ){ ... };

Parameters

idstring|numberthe id of the changed shape
statusstringthe status of the change:"add","update","delete"
shapeobjectthe object of the changed shape

Example

diagram.events.on("Change",function(id,status,shape){
    console.log("The shape has been updated");
});

Details

There are cases when the handler function doesn't take any parameters, e.g. while a data set is parsed into the diagram of if all shapes are removed.

Back to top