API to show/ hide popover and tooltip
See original GitHub issueWhat problem does this feature solve?
By adding this feature, one can control the visibility of popover or tooltip.
Use case:
I’ve a popover which triggers on hover
. In the content of the popover, I’ve a clickable item. When clicked, it takes me to a new route(react-router). After going to the new route, I need the popover to hide.
Current Secenario
As hover
is handled internally there is no way to show/hide tooltip/popover manually. visible
will not help as onMouseOut
will close the popover.
Example:
Check this https://codesandbox.io/s/z3k94jy6y3
What does the proposed API look like?
<Popover>.show()
- show
function over an instance of popover/tooltip
<Popover>.hide()
- hide
function over an instance of popover/tooltip
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Show and Hide the Popover - DevExtreme - DevExpress
To show or hide the Popover programmatically, call the show() or hide() method. The same thing can be done using the toggle(showing) method....
Read more >How to hide Bootstrap 3 popover when another popover is ...
If you want to manually hide and show the popover, set "trigger: manual" in your popover configuration. Aside from that, there is no...
Read more >Popovers - Bootstrap
Popovers must be hidden before their corresponding elements have been removed from the DOM. Keep reading to see how popovers work with some...
Read more >Popovers - Bootstrap - University of Houston
For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning you must initialize them ... Don't try to show popovers on hidden...
Read more >Popover - Ant Design
Comparing with Tooltip , besides information Popover card can also provide action elements like links and buttons. Examples. Hover ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
if i have multi Popover?? Visibled all
This issues is definitely shouldn’t be marked as closed