Skip to content

I want to change the label or something on the edge #1012

Answered by bcakmakoglu
Gemini-0529 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gemini-0529
Comment options

Answer selected by Gemini-0529
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants