ICollectionChangeEventArgs
23 Sep 20251 minute to read
ICollectionChangeEventArgs notifies while the node/connector are added or removed.
Properties
cancel boolean
returns whether to cancel the change or not.
cause DiagramAction
returns the action of diagram
diagramAction string
returns a actions to enable proper notification of the operations.
PublicMethod: Items added or removed through public API methods.
SymbolPalette: Items added via interaction with the Symbol Palette.
DrawingTool: Items added using a drawing tool.
Clipboard: Items added or removed via clipboard operations (copy, cut, paste).
Undo: Items affected by an undo operation.
Redo: Items affected by a redo operation.
Group: Items added as part of a group operation.
element NodeModel|ConnectorModel
returns the element that is going to added or removed from the diagram.
laneIndex Number
returns the lane index
parentId string
returns a parent node of the target node
state EventState
returns the state of collection change event (Changing, Changed, Canceled)
type ChangeType
returns the type of the collection change.