label style on an edge like hover in css? #238
-
I've used EdgeText to implement a label on an edge. And the static style of the label has been set. Now I want to set the style when the mouse is over the label. Something like 'hover' in css. |
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Jul 21, 2022
Replies: 1 comment 3 replies
-
Can you give me an example? You can either handle mouseover events like any other element <EdgeText @mouseenter="onMouseEnter" @mouseleave="onMouseLeave" /> or use css like this for example: .vue-flow__edge-textwrapper:hover .vue-flow__edge-text {
fill: red;
} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Yeenyeong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you give me an example?
You're using the
EdgeText
component in a custom edge? is that right?You can either handle mouseover events like any other element
or use css like this for example: