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 item
statusstringthe status of the change:"add","update","delete"
shapeobjectthe object of the changed item

Example

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

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