ChrisDelClea / streamlit-agraph

A Streamlit Graph Vis
MIT License
387 stars 52 forks source link

Double Click on nodes actions #51

Open RzDJafari opened 8 months ago

RzDJafari commented 8 months ago

Hi, hope you are doing well.

Is there any way to define a certain action that happens when a user double-clicks on a node? For example, when a user double-clicks on a node, a new webpage could open.

jalakoo commented 6 months ago

Not sure if this is intended - When I double-click on a node with the current version of streamlit-agraph a new webpage tab opens to an appended path. So if I were running locally at

localhost:8505

A new tab will open to:

localhost:8505/component/streamlit_agraph.agraph/<name_of_node>

controllocked commented 6 months ago

Not sure if this is intended - When I double-click on a node with the current version of streamlit-agraph a new webpage tab opens to an appended path. So if I were running locally at

localhost:8505

A new tab will open to:

localhost:8505/component/streamlit_agraph.agraph/<name_of_node>

is there any way to change it?

digitalboy commented 5 months ago

how can I get a click event?