yonicd / jsTree

R htmlwidget for inspecting heirachal structures with the ‘jQuery’ ‘jsTree’ Plugin.
https://yonicd.github.io/jsTree/
Other
30 stars 7 forks source link

Catch jstree event in javascript #14

Open GilesPercy opened 5 years ago

GilesPercy commented 5 years ago

I know I can use shiny to catch events on the tree. Is it possible to do this just using Javascript with the jsTree htmlwidget?

I have tried to use the htmlwidgets package and appendContent, but I am not sure how to set up up the listener. The jsTree documentation shows how to do it in Javascript. Other widgets seem to insert a listener using a callback.

yonicd commented 5 years ago

the only way i know to do this is via the shiny listener, maybe @timelyportfolio knows more on this issue.

yonicd commented 5 years ago

or maybe @daattali would also know