AfterSelect

fires after selecting a shape

void AfterSelect(string|number id){ ... };

Parameters

idstring|numberthe shape id

Example

var diagram = new dhx.Diagram("diagram_container", { 
    type: "org", 
    select: true        
});
 
diagram.events.on("AfterSelect", function(id) {
    console.log(diagram.data.getItem(id).text + " was selected");
});

Related samples

See also
Back to top