Profectus / features/trees/tree / TreeNodeOptions
Interface: TreeNodeOptions ​
An object that configures a TreeNode.
Extends ​
Extended by ​
Properties ​
canClick? ​
optionalcanClick:MaybeRefOrGetter<boolean>
Whether or not this tree node can be clicked.
Defined in ​
profectus/src/features/trees/tree.tsx:97
classes? ​
optionalclasses:MaybeRefOrGetter<Record<string,boolean>>
Dictionary of CSS classes to apply to this feature.
Inherited from ​
Defined in ​
color? ​
optionalcolor:MaybeRefOrGetter<string>
The background color for this node.
Defined in ​
profectus/src/features/trees/tree.tsx:99
display? ​
optionaldisplay:MaybeGetter<Renderable>
The label to display on this tree node.
Defined in ​
profectus/src/features/trees/tree.tsx:101
glowColor? ​
optionalglowColor:MaybeRefOrGetter<string>
The color of the glow effect shown to notify the user there's something to do with this node.
Defined in ​
profectus/src/features/trees/tree.tsx:103
onClick()? ​
optionalonClick: (e?) =>void
A function that is called when the tree node is clicked.
Parameters ​
e? ​
Returns ​
void
Defined in ​
profectus/src/features/trees/tree.tsx:107
onHold? ​
optionalonHold:VoidFunction
A function that is called when the tree node is held down.
Defined in ​
profectus/src/features/trees/tree.tsx:109
reset? ​
optionalreset:Reset
A reset object attached to this node, used for propagating resets through the tree.
Defined in ​
profectus/src/features/trees/tree.tsx:105
style? ​
optionalstyle:MaybeRefOrGetter<CSSProperties>
CSS to apply to this feature.
Inherited from ​
Defined in ​
visibility? ​
optionalvisibility:MaybeRefOrGetter<boolean | Visibility>
Whether this feature should be visible.