Skip to main content

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

ParameterTypeDescription
objstring | Node | GroupNode/Group, or ID of Node/Group, to select
includeFocusbooleanWhether or not to include the focus node/group in the returned dataset. Defaults to false.
includeEdgesbooleanWhether or not to include edges in the returned dataset. Defaults to false.

Returns:

Selection<Edge | Node | Group>