Home > @jsplumbtoolkit/core > JsPlumbToolkit > removeFromGroup
JsPlumbToolkit.removeFromGroup() method
Removes a Node/Group from a Group.
Signature:
removeFromGroup(node: Node | Group | string | ObjectData, doNotFireEvent?: boolean, targetGroup?: Group, source?: ToolkitRenderer<any>): Group;
Parameters
Parameter | Type | Description |
---|---|---|
node | Node | Group | string | ObjectData | Node/Group to remove, or its id, or the data representing it. |
doNotFireEvent | boolean | For internal use. If true, a group:removeMember event will not be fired as a result of this operation. Otherwise it will. |
targetGroup | Group | For internal use. Group to which the Node is being moved, if that applies. |
source | ToolkitRenderer<any> | For internal use. The renderer in which user activity caused this method to be called. We echo that out in the event parameters, allowing renderers to not respond to events they raised. |
Returns:
The Group from which the Node was removed.