I want to change the label or something on the edge #1012
Answered
by
bcakmakoglu
Gemini-0529
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Jul 10, 2023
Replies: 1 comment 1 reply
-
It's not the right way to modify the label styles. If you want to use a regular html element, use the Open up the file |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Gemini-0529
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not the right way to modify the label styles.
The label isn't a regular HTML element, it's an svg element thus using
padding
as a css rule will do nothing here.There are dedicated label props for this (like
labelBgPadding
).If you want to use a regular html element, use the
EdgeLabelRenderer
instead.You can find an example on the docs.
Open up the file
CustomEdge.vue
and see how it's used.