How to pass data / callbacks to a custom edge?
See original GitHub issueHeya, thanks for the library.
I want to have a more complicated menu appearing, if the the user hovers over a custom edge.
Maybe there is already a good way, how to achieve this. I didn’t find one. I have the following ideas how it could look like:
Idea 1
For nodes there is a generic data attribute to pass information. It’s used for a callback in an example. For edges there is no such attribute. So one could add data to the edge options
Idea 2
label of an edge is defined as string. If it could be any react component, that could also be a solution.

Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Cutting Edge: Custom Script Callbacks in ASP.NET
The Submit button on this page just posts all the values to the server the usual way. In practice, values will be processed...
Read more >Writing your own callbacks | TensorFlow Core
You can pass a list of callbacks (as the keyword argument ... Then, load the MNIST data for training and testing from Keras...
Read more >How to implement message passing callbacks in an all-in-one ...
In the second if statement, by checking to see if the return value of a window.browser.runtime.sendMessage is a Promise or undefined , we...
Read more >Building Custom Callbacks with Keras and TensorFlow 2
Callbacks are an important type of object in Keras and TensorFlow. They are designed to be able to monitor the model performance in...
Read more >CUDA Pro Tip: Use cuFFT Callbacks for Custom Data ...
For the load callback, cuFFT passes the callback routine the address of the input data and the offset to the value to be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Working nicely
@andys8 it’s released in 4.7.0. Let me know if it works for you!