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

Support for custom tooltips (i.e. tippy) #2777

Closed
1 task
bencsn opened this issue Mar 30, 2021 · 1 comment
Closed
1 task

Support for custom tooltips (i.e. tippy) #2777

bencsn opened this issue Mar 30, 2021 · 1 comment
Labels
feature 💡 A new feature request or an enhancement proposal Outdate This issue is too old to be resolved

Comments

@bencsn
Copy link

bencsn commented Mar 30, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

It's currently not possible to use custom tool tips with G6, especially in Canvas mode because most tool tips implementations require an HTML element to attach to and a hook for destroying the tool tips once they are used. These two are missing in G6 currently.

For example, we are using tippy js (https://github.com/atomiks/tippyjs) throughout our application and we'd like G6 tooltips to have the same look and feel by reusing our custom-made tooltips.

What does the proposed API look like?

A generic way to use any custom tooltips with G6. Most tooltip libraries need the following

  • Expose an HTML element for tippy (or other custom tooltip libraries) to attach to (including in Canvas mode)
  • Expose a hook to destroy a tooltip after it is used (could be something similar to mouseleave event?)
@baizn baizn added the feature 💡 A new feature request or an enhancement proposal label Mar 30, 2021
@Aarebecca Aarebecca added the Outdate This issue is too old to be resolved label Dec 8, 2023
Copy link

github-actions bot commented Dec 8, 2023

This issue has been closed because it has been outdate for a long time.
Please open a new issue if you still need help.
这个 issue 已经被关闭,因为 它已经过期很久了
如果你仍然需要帮助,请创建一个新的 issue。

@github-actions github-actions bot closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 💡 A new feature request or an enhancement proposal Outdate This issue is too old to be resolved
Projects
None yet
Development

No branches or pull requests

3 participants