Conditional link styling #348
Unanswered
fabianoliver
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hello, Thank you for the kind words! To be honest, what you're describing is exactly the use of a custom link model and widget. I can't add these specific scenarios to the library because there will always be more things to add. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
first of all - amazing library, I love the thought that went into customizability.
I'm using this to display data flow in a distributed system. I would like to style links based on properties of the link itself. Picture something like "if there's currently data in transmit between two nodes, display the link line with some nice animation" (and similarly for other possible states of the link)
Do we currently have any reasonably straightforward way to do that?
So far, I'm being a bit cheap and just changing the link's Color property, but obviously it would be nice to be able to apply other styles here. Conceptually, I'd imagine a nice way might be creating a custom LinkModel with some custom property, then having the renderer apply classes based on the property value. But so far the only way I've seen would be to implement a custom link widget for that, which seems a touch excessive.
Maybe there's some nicer way to achieve that already? Or if not, would that be something that's easy to add in some standardised way to the library?
Beta Was this translation helpful? Give feedback.
All reactions