Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

selectNodes in component #19

Open
gustavopiucco opened this issue Feb 27, 2019 · 0 comments
Open

selectNodes in component #19

gustavopiucco opened this issue Feb 27, 2019 · 0 comments

Comments

@gustavopiucco
Copy link

gustavopiucco commented Feb 27, 2019

Hello,

To select a Node, I need to use React.createRef to access vis network instance and then this.networkRef.current.network.selectNodes([])

It would be amazing if you implement a prop such as:

<Node selectedNode={true} id="vader" label="Darth Vader" />
<Node selectedNode={true} id="luke" label="Luke Skywalker" />
<Node selectedNode={false} id="leia" label="Leia Organa" />

Or

<Network selectedNodes={[]} />

Or something like that.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant