Home > @jsplumbtoolkit/browser-ui > Selection > toggle
Selection.toggle() method
Toggles the given object's membership in the current selection. If obj
is a Path, then the individual members of the Path are toggled independently.
Signature:
toggle(obj: string | Array<string> | Base | Array<Base> | Path | Selection, evtPipe?: any): any[];
Parameters
Parameter | Type | Description |
---|---|---|
obj | string | Array<string> | Base | Array<Base> | Path | Selection | Object(s) to add. May take many forms - a Group, Group Id, Node, Node Id, or Edge, or a list of these, or a Path. |
evtPipe | any |
Returns:
any[]