Below is a list of all the public functions that can be called from the Tree.js instance.
Refreshes a Tree.js instance.
Fires: onRefresh
Parameter: elementId: 'string' - The Tree.js element ID that should be refreshed.
Returns: 'Object' - The Tree.js class instance.
Refreshes all of the rendered Tree.js instances.
Fires: onRefresh
Returns: 'Object' - The Tree.js class instance.
Moves to the previous category.
Fires: onBackCategory
Parameter: elementId: 'string' - The Tree.js element ID that should be updated.
Returns: 'Object' - The Tree.js class instance.
Moves to the next category.
Fires: onNextCategory
Parameter: elementId: 'string' - The Tree.js element ID that should be updated.
Returns: 'Object' - The Tree.js class instance.
Sets the specific configuration options that should be used.
Parameter: newConfiguration: 'Options' - All the configuration options that should be set (refer to "Configuration Options" documentation for properties).
Returns: 'Object' - The Tree.js class instance.
Returns an array of element IDs that have been rendered.
Returns: 'string[]' - The element IDs that have been rendered.
Returns the version of Tree.js.
Returns: 'string' - The version number.
<script>
var version = $tree.getVersion();
</script>