tiagolr/vnodes

Any way to input data from user?

omerfdmrl opened this issue · 1 comments

Hi. Is there any way to input data from user by label or edge?

yes, data passed when creating an edge or node is passed to the component, eg:

this.graph.createNode({id: 'A', customData: 'text' })
this.graph.createEdge('A', ''B', { customData: 'text' })

you can also set it afterwards

const A = this.graph.createNode('A')
A.prop = 'sometext'

not sure if that's what your asking but hope this answers