import{_ as e,c as t,o as r,N as a}from"./chunks/framework.0799945b.js";const b=JSON.parse('{"title":"Interface: TreeNodeOptions","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/features/trees/tree.TreeNodeOptions.md","lastUpdated":null}'),o={name:"api/interfaces/features/trees/tree.TreeNodeOptions.md"},n=a('
features/trees/tree.TreeNodeOptions
An object that configures a TreeNode.
TreeNodeOptions
• Optional
canClick: Computable
<boolean
>
Whether or not this tree node can be clicked.
profectus/src/features/trees/tree.ts:40
• Optional
classes: Computable
<Record
<string
, boolean
>>
Dictionary of CSS classes to apply to this feature.
profectus/src/features/trees/tree.ts:48
• Optional
color: Computable
<string
>
The background color for this node.
profectus/src/features/trees/tree.ts:42
• Optional
display: Computable
<CoercableComponent
>
The label to display on this tree node.
profectus/src/features/trees/tree.ts:44
• Optional
glowColor: Computable
<string
>
The color of the glow effect shown to notify the user there's something to do with this node.
profectus/src/features/trees/tree.ts:46
• Optional
mark: Computable
<string
| boolean
>
Shows a marker on the corner of the feature.
profectus/src/features/trees/tree.ts:52
• Optional
onClick: (e?
: MouseEvent
| TouchEvent
) => void
▸ (e?
): void
A function that is called when the tree node is clicked.
Name | Type |
---|---|
e? | MouseEvent | TouchEvent |
void
profectus/src/features/trees/tree.ts:56
• Optional
onHold: VoidFunction
A function that is called when the tree node is held down.
profectus/src/features/trees/tree.ts:58
• Optional
reset: GenericReset
A reset object attached to this node, used for propagating resets through the tree.
profectus/src/features/trees/tree.ts:54
• Optional
style: Computable
<StyleValue
>
CSS to apply to this feature.
profectus/src/features/trees/tree.ts:50
• Optional
visibility: Computable
<boolean
| Visibility
>
Whether this tree node should be visible.