Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get click action result #34

Open
AndraIonescu opened this issue Oct 21, 2024 · 1 comment
Open

Get click action result #34

AndraIonescu opened this issue Oct 21, 2024 · 1 comment

Comments

@AndraIonescu
Copy link

Hello,

I want to do some specific actions with the nodes and edges, for example to edit a node or to add a new edge between existing nodes. I want to enable the user to choose the nodes and the edges, and for that I need to see which node is clicked.

I wondering if there's a way to get the click action result. I don't see anything in session_state related to that, which brought me here.

Also, it would be very nice to be able to edit the node/edge in the side panel.

Thanks,
Andra

@George-bai
Copy link

I feel what you’re looking for is in the event listening example.

You can get the id of the node you clicked by add clicking event listener.

events = [
Event("clicked_node", "click tap", "node"),
Event("another_name", "dblclick dbltap", "*"),
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants