Raised when an item is added to the diagram, either programmatically or interactively.
JavaScript Copy Code |
---|
function onItemAdded (sender, args) |
ItemAdded handlers receive an event object of type ItemEventArgs.
To handle the ItemAdded event, assign the name of the respective JavaScript function (for example 'onItemAdded') to the ItemAddedScript property.