Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip for Nodes #539

Open
jmreddy2106 opened this issue Oct 17, 2022 · 1 comment
Open

Tooltip for Nodes #539

jmreddy2106 opened this issue Oct 17, 2022 · 1 comment

Comments

@jmreddy2106
Copy link

Hi @danielcaldas I'm trying to enable tooltip for node on MousrOver. I'm unable to access the below URL.

sandbox example

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
Copy link

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;
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants