Callbacks for node/edge clicks?
I saw some discussion about this topic in previous issues (for example #85), but didn't immediately find any updates on this topic. Has this functionality been integrated into the current stable release of pyvis? If not, is it accessible on an experimental branch? Specifically, I would like for there to be the simple functionality of knowing when a node or edge is clicked so I can display some new information when a node is selected (in my case, pop-up windows containing bar/line charts, so not just text).
Any updates would be appreciated!
Also very interested in this - is there any update on this? Is it now possible to create 'onclick' events, for example, in relation to clicking the nodes?
I notice in the docs here: https://pyvis.readthedocs.io/en/latest/_modules/pyvis/options.html?highlight=events# that is mentions of 'mouse and touch events' and then in the visjs documentation there is: https://visjs.github.io/vis-network/docs/network/#Events but I cannot see any example of if adding a node click event is possible?
Although this does not answer this question - this is possible using https://holoviews.org/user_guide/Network_Graphs.html see https://holoviews.org/user_guide/Custom_Interactivity.html and Bokeh (which HoloViews is based on). See https://stackoverflow.com/questions/58430994/color-network-graph-node-lines-on-click-in-bokeh-python for an example.
I'm still interested in the answer to the above! Will have to dig into the code base and have a play!
hi keepexploring I am exploring the HoloViews from many days but connot reach to the concrete solution. i am looking for the solution, to make a graph network in holoview.. i want to call onclick function when a single node is clicked and onclick event specific information will be displayed... I am also looking the above said solution in pyvis... I'm interested in the answer to the above!