Constructor
new Tree(settingsopt) → {Tree}
Create an instance of a Tree.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
settings |
Object |
<optional> |
Configuration. |
- Source:
Returns:
Instance of the tree.
- Type
- Tree
Methods
addLeaf(leaf) → {Tree}
Add a leaf to the tree.
Parameters:
Name | Type | Description |
---|---|---|
leaf |
String | Leaf to add to the tree. |
- Source:
Returns:
Instance of the tree.
- Type
- Tree
getLeaves() → {Array}
Get a list of the Tree's leaves.
- Source:
Returns:
A list of the Tree's leaves.
- Type
- Array