Tooltip for Nodes
jmreddy2106 opened this issue · 1 comments
jmreddy2106 commented
Hi @danielcaldas I'm trying to enable tooltip for node on MousrOver. I'm unable to access the below URL.
If possible, can you enable it?
Even after including the node configuration, the tooltip is not visible.
node: { showToolTip: true, tooltipProp: 'id', tooltipBackgroundColor: ' black', tooltipTextColor: 'white' }
Can you suggest me, how to attach tooltip onMouseOverNode?
Thanks
michaelbdavid commented
You could create your own custom component using:
node: { ..., viewGenerator: generateCustomNode }
This would allow to do whatever you want with the Node
function generateCustomNode(node: any) {
return node ? <PersonNode person={node} /> : null;
}