crubier / react-graph-vis

A react component to render nice graphs using vis.js

Home Page:http://crubier.github.io/react-graph-vis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessing event trigger button onclick function

AlisanCakir opened this issue · comments

I have using to react-graph-vis package like below

    <Graph
      ref={graph}
      graph={data}
      options={options()}
      events={events}
    />

event prop triggers when i press the graph element and events func like below

  const events = {
    select: function(event) {
      var { nodes, edges } = event;
    }
  };

I want to access the event from another button onClick, how can I do that, thanks for suggestion