question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to pass data / callbacks to a custom edge?

See original GitHub issue

Heya, 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.

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
andys8commented, Jul 27, 2020

Working nicely

1reaction
moklickcommented, Jul 27, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found