Skip to content

Modify node properties from CustomNode component #920

Closed Answered by bcakmakoglu
fabiomaistro asked this question in Q&A
Discussion options

You must be logged in to vote

Props are immutable (this is imposed by Vue, not Vue Flow) but what you can do is something like this

// inside your custom node component
const { node } = useNode()

function changeNodeLabel(label: string) {
	node.label = label
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fabiomaistro
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