Accessing event trigger button onclick function
AlisanCakir opened this issue · 0 comments
AlisanCakir commented
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