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

Rendering node titles as tooltips #610

Closed
bharatpatil opened this issue Jun 28, 2016 · 1 comment
Closed

Rendering node titles as tooltips #610

bharatpatil opened this issue Jun 28, 2016 · 1 comment

Comments

@bharatpatil
Copy link

Can we add this enhancement where if tooltip is not available then render node title as a tooltip.

Scenario is like, I am using text-overflow: ellipsis css property for span.fancytree-title and on hover of that complete title should be shown in tooltip.
However currently I need to add tooltip as a separate key in node object as a property.

@mar10
Copy link
Owner

mar10 commented Jun 28, 2016

You don't have to send it as separate key. You could generate it on the fly in the render callback instead, or add it in the postProcess callback.

This could be automated by a new tree option (e.g. .tooltip: "auto" or similar).

Note: If you are using a tooltip plugin (like jQuery UI tooltip), it might have an option to configure a callback, that you can use the node title on the fly. This would prevent storing duplicate data)

@mar10 mar10 mentioned this issue Aug 5, 2016
mar10 added a commit that referenced this issue Oct 18, 2016
mar10 added a commit that referenced this issue Oct 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants