Skip to content
On this page

Interface: TreeOptions

features/trees/tree.TreeOptions

An object that configures a Tree.

Properties

branches

Optional branches: Computable<TreeBranch[]>

The branches between nodes within this tree.

Defined in

profectus/src/features/trees/tree.ts:192


leftSideNodes

Optional leftSideNodes: Computable<GenericTreeNode[]>

Nodes to show on the left side of the tree.

Defined in

profectus/src/features/trees/tree.ts:188


nodes

nodes: Computable<GenericTreeNode[][]>

The nodes within the tree, in a 2D array.

Defined in

profectus/src/features/trees/tree.ts:186


onReset

Optional onReset: (node: GenericTreeNode) => void

Type declaration

▸ (node): void

A function that is called when a node within the tree is reset.

Parameters
NameType
nodeGenericTreeNode
Returns

void

Defined in

profectus/src/features/trees/tree.ts:196


resetPropagation

Optional resetPropagation: ResetPropagation

How to propagate resets through the tree.

Defined in

profectus/src/features/trees/tree.ts:194


rightSideNodes

Optional rightSideNodes: Computable<GenericTreeNode[]>

Nodes to show on the right side of the tree.

Defined in

profectus/src/features/trees/tree.ts:190


visibility

Optional visibility: Computable<boolean | Visibility>

Whether this clickable should be visible.

Defined in

profectus/src/features/trees/tree.ts:184