Skip to content

Multiple source positions (Drag & Drop example) #1382

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

You must be logged in to vote

You need to use a custom node for that.

Check the custom node example on how to implement it.

Basically use the Handle component, set a unique id for the handle, define what type of handle it is and the position <Handle :id="uniqueHandleId" type="source" :position="Position.Top">.

To target the handle with an edge you will have to use sourceHandle / targetHandle to specify which handle the edge belongs to.

{
	id: 'e1a-2',
	source: '1',
	target: '2',
	sourceHandle: 'handle-a'
}

Replies: 1 comment

Comment options

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