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

Hover event on network nodes #1

Open
peterkva opened this issue Mar 16, 2021 · 2 comments
Open

Hover event on network nodes #1

peterkva opened this issue Mar 16, 2021 · 2 comments

Comments

@peterkva
Copy link

It would really be helpful if you implemented a hover event on the nodes that would display text from a list of node attributes.

@peterkva
Copy link
Author

peterkva commented Mar 17, 2021

Applying on-click action always launches the action even though I just want to move the node. Very annoying.
A hover event implementation (similar to click action) on the nodes would eliminate this issue.

@JansenNick
Copy link
Owner

Applying on-click action always launches the action even though I just want to move the node. Very annoying.
A hover event implementation (similar to click action) on the nodes would eliminate this issue.

Thanks for the feedback, I can see how an hover event might be useful and will consider it in a future release.
The current on click event should not prevent you from moving the node, although if of course will depend on what you implement in the on click microflow. How I often approach it myself is by putting the widget in an dataview, give the object of this dataview an association to the node object, and then on the click event set the clicked node associated to the context object. If you then on your page page put an additional dataview that retrieves its data by this association, you can get a context window with the information of the node you clicked.

I've updated and added the test project to showcase this approach.

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