Home > @jsplumbtoolkit/browser-ui-plugin-drag-groups > DragGroupsPlugin > addToDragGroup
DragGroupsPlugin.addToDragGroup() method
Adds the given objects to the given drag group.
Signature:
addToDragGroup(spec: DragGroupSpec, ...objects: Array<string | Node | ObjectData | jsPlumbToolkitDOMElement>): void;
Parameters
Parameter | Type | Description |
---|---|---|
spec | DragGroupSpec | Spec for the drag group. If you supply a string, then all objects are added to the drag group with that name, and they are marked "active". If you supply an object in the form { id:string, active?:boolean } then all the objects are added to the drag group with the active state you provide. |
objects | Array<string | Node | ObjectData | jsPlumbToolkitDOMElement> | Objects to add. |
Returns:
void