react-cytoscapejs icon indicating copy to clipboard operation
react-cytoscapejs copied to clipboard

Does this pkg suport tooltip on hover?

Open anfa1014 opened this issue 4 years ago • 1 comments

hi, i want to add tooltip on each node , does this pkg provide this feature ?

anfa1014 avatar Dec 01 '20 03:12 anfa1014

Did you find a solution to this? If it's not available in-library you can use the cy prop on whatever your favorite Tooltip library to do this. <CytoscapeComponent elements={[]} cy={(cy) => { cy.on("mouseover", "node", ({ target }) => { const data = target.data() #throw the data onto redux/mobx/whatever #pipe through Tippy console.log({...data.obj}) }) }} />

ztyree42 avatar Jun 20 '21 04:06 ztyree42