question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating a Tippy instance without a DOM element

See original GitHub issue

Popper now allows for specifying a custom object instead of a DOM node for positioning.

Would it be possible to allow passing in a Popper instance instead of a DOM element, i.e. new Tippy( popper )? If not, maybe instead pass the reference object instead of the DOM element, i.e. new Tippy( popperRef )?

Thanks

Ref : https://github.com/cytoscape/cytoscape.js-qtip/issues/28#issuecomment-300488586

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
atomikscommented, Aug 8, 2018

@DaJoTo you need to pass it as the first argument, tippy(refObject). The docs show that. Instead of a DOM element, you use a virtual element.

1reaction
DaJoTocommented, Aug 8, 2018

@dgroh I imagine the above is for you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Methods | Tippy.js
Methods on instances allow you to control the tippy programmatically. See the Tippy Instance page for details on accessing an instance.
Read more >
Tippy.js generating several instances in DOM when expecting ...
It seems that when I hover over the link that several instances of the tooltip are created in the DOM, not one (as...
Read more >
FAQ | Tippy.js
An addon is an external function that calls the tippy() constructor because it's controlling or creating many different tippy instances. A plugin is...
Read more >
All Props - VueTippy
The element to append the tippy to. If interactive: true , the default behavior is appendTo: "parent" . Sometimes the tippy needs to...
Read more >
Tippy.js - Pure JS Tooltip Library WDPHP素材源码
Then, to give it a Tippy tooltip, create a new Tippy instance by passing in a ... Elements without a title attribute or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found