import{_ as r,c as t,a0 as a,o}from"./chunks/framework.P9qPzDnn.js";const f=JSON.parse('{"title":"Interface: Tree","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/features/trees/tree/interfaces/Tree.md","filePath":"api/features/trees/tree/interfaces/Tree.md","lastUpdated":null}'),i={name:"api/features/trees/tree/interfaces/Tree.md"};function n(s,e,d,c,l,h){return o(),t("div",null,e[0]||(e[0]=[a('
Profectus / features/trees/tree / Tree
[VueFeature]:
true
Used to identify Vue Features
optional
branches:MaybeRef
<TreeBranch
[]>
The branches between nodes within this tree.
profectus/src/features/trees/tree.tsx:143
Dictionary of CSS classes to apply to this feature.
components:
MaybeGetter
<Renderable
>[]
The components to render inside the vue feature
id:
string
An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates.
isResetting:
Ref
<boolean
,boolean
>
A flag that is true while the reset is still propagating through the tree.
profectus/src/features/trees/tree.tsx:153
optional
leftSideNodes:MaybeRef
<TreeNode
[]>
Nodes to show on the left side of the tree.
profectus/src/features/trees/tree.tsx:139
The link objects for each of the branches of the tree.
profectus/src/features/trees/tree.tsx:149
nodes:
MaybeRef
<TreeNode
[][]>
The nodes within the tree, in a 2D array.
profectus/src/features/trees/tree.tsx:137
optional
onReset: (node
) =>void
A function that is called when a node within the tree is reset.
TreeNode
void
profectus/src/features/trees/tree.tsx:147
reset: (
node
) =>void
Cause a reset on this node and propagate it through the tree according to TreeOptions.resetPropagation.
TreeNode
void
profectus/src/features/trees/tree.tsx:151
optional
resetPropagation:ResetPropagation
How to propagate resets through the tree.
profectus/src/features/trees/tree.tsx:145
resettingNode:
Ref
<any
,any
>
A reference to the node that caused the currently propagating reset.
profectus/src/features/trees/tree.tsx:155
optional
rightSideNodes:MaybeRef
<TreeNode
[]>
Nodes to show on the right side of the tree.
profectus/src/features/trees/tree.tsx:141
optional
style:MaybeRef
<CSSProperties
>
CSS to apply to this feature.
type: typeof
TreeType
A symbol that helps identify features of the same type.
profectus/src/features/trees/tree.tsx:157
optional
visibility:MaybeRef
<boolean | Visibility>
Whether this feature should be visible.
wrappers:
Wrapper
[]
The components to render wrapped around the vue feature