Home > @jsplumbtoolkit/core > JsPlumbToolkit > selectDescendants
JsPlumbToolkit.selectDescendants() method
Selects all descendants of some Node or Group, and, optionally, the Node/Group itself.
Signature:
selectDescendants(obj: string | Node | Group, includeFocus?: boolean, includeEdges?: boolean): Selection<Edge | Node | Group>;
Parameters
Parameter | Type | Description |
---|---|---|
obj | string | Node | Group | Node/Group, or ID of Node/Group, to select |
includeFocus | boolean | Whether or not to include the focus node/group in the returned dataset. Defaults to false. |
includeEdges | boolean | Whether or not to include edges in the returned dataset. Defaults to false. |
Returns: