2declare(strict_types=1);
46 $this->label = $label;
47 $this->recursion = $recursion;
83 return $this->environment;
99 return $this->recursion;
108 $clone = clone $this;
109 $clone->highlight_nodes_on_click = $highlight_nodes_on_click;
118 return $this->highlight_nodes_on_click;
An exception for terminatinating execution or to throw for unit testing.
$highlight_nodes_on_click
getEnvironment()
Get the environment.
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?
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.