Create a new tree that can be expanded and collapsed. You can add children to the tree
with the addChild method so that they appear in the tree.
Optionaltitle: string = ''The title of the tree.
Optionalexpanded: boolean = falseWhether the tree is expanded.
Do the necessary initialization.
Add one or more classes to an element.
Collapse the tree.
Destroy the element
Expand the tree.
The getConfig function returns a JSON representation of all values in the tree.
The loadConfig function loads a JSON object into the tree.
Add a click event listener to the widget.
The function to call when the widget is clicked.
Remove one or more classes from an element.
Set the content of the tree.
Set the text of the widget.
The value to set the text to.
Set the title of the tree.
Toggle the tree between collapsed and expanded.
A tree that can be expanded and collapsed, and can also have children.