I am trying to use the API example of the Expand/Collapse functions. I placed the functions code into the tree.js file and I placed the call samples
in the html after my <script>new tree....</script> When I try to expand or collapse, I get "Tree is not initialized yet." I am pasting
the code without any changes. Do I need to change something so it will see my tree?
BTW, I am using the latest Pro version.
Thanks for your help!
First of all there is no need to modify original tree.js file (it's not allowed by license agreement), you could link the extra code by including it
to other files (tree_items.js, tree_tpl.js, etc.)
how does your tree constructor looks like (new tree....) ?
please provide full line.
For the time being, I have moved the functions into the items file.
Here is the code I think you were referring to.
new tree (TREE_ITEMS, TREE_TPL, 'FITS_Tree');
After that is where I have the links for expand/collapse.
As your tree is named ('FITS_Tree') the correct usage is:
Thanks Rock, you're awesome!