2declare(strict_types=1);
51 $this->label = $label;
52 $this->recursion = $recursion;
88 return $this->environment;
104 return $this->recursion;
113 $clone = clone $this;
114 $clone->highlight_nodes_on_click = $highlight_nodes_on_click;
123 return $this->highlight_nodes_on_click;
131 return $this->is_sub;
139 $clone = clone $this;
140 $clone->is_sub = $is_sub;
An exception for terminatinating execution or to throw for unit testing.
$highlight_nodes_on_click
getEnvironment()
Get the environment.
withIsSubTree(bool $is_sub)
Set this tree to be a part of a tree.Needed if parts are loaded async.
withHighlightOnNodeClick(bool $highlight_nodes_on_click)
Should a clicked node be highlighted?
withEnvironment($environment)
Configure the Tree with additional information that will be relayed to TreeRecursion.
__construct(string $label, ITree\TreeRecursion $recursion)
getHighlightOnNodeClick()
Is the tree configured to highlight a clicked node?
isSubTree()
Is this only a part of a tree? Needed if parts are loaded async.
withData($data)
Apply data to the Tree.
getRecursion()
Get the mapping-class.
Interface for mapping data-structures to the Tree.
This describes a Tree Control.
trait ComponentHelper
Provides common functionality for component implementations.