dash14 / v-network-graph

An interactive network graph visualization component for Vue 3
https://dash14.github.io/v-network-graph/
MIT License
485 stars 44 forks source link

node:select event and how to get node/s selected? #92

Closed ElToroDM closed 1 year ago

ElToroDM commented 1 year ago

Has anybody a node:select event example. I don't get how to know which nodes are selected.

Thanks in advance!

ElToroDM commented 1 year ago

Sorry, I had to ask to answer myself:

const eventHandlers: vNG.EventHandlers = {
  "node:select": (nodes) => {
    message.value =  nodes[0]
  }