Closed billmn closed 9 years ago
In which situation would you use the clickNode function?
At now in any specific situation but I think can be useful to call commands in the "tree.click" event. Now exist methods to trigger all the jqTree events (excluding "tree.contextmenu") but not for "tree.click".
Mine is not a request but a simple proposal because I think that was a missing function.
Super Low Priority :)
is clickNode implemented ? or is there anything similar function ?
You can select a node using the selectNode function.
There is no clickNode function.
but selectNode does not trigger the click event for that node.
I think it does trigger the tree.select event.
If you really want the click event, then perhaps there is a way to trigger it somehow.
.. when walking the tree using the keys, the 'tree.select' event is triggered nicely. So it is easy to connect a function to this event:
In my case this works just fine. When a new node is selected via keyboard or mouse-click, the function is called, thus the object displayed in its place.
I notice that exists selectNode, openNode, ... functions but doesn't exists a function to simulate a node click.
Something like this :
thoughts ?