Feature Request: Enable tooltip conditionally
See original GitHub issueui-boostrap
supported tooltip-enable
option through which you can enable tooltip conditionally. This is very much required for any complex application.
Usecase:
- Inform user that he doesn’t have permission to access the
div
given his access level.tooltip-enable
would evaluate the underlying function to determine the access level. - Manual triggers are too complex for this usecase.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Option for Tooltip to display even when component disabled
We often implement Tooltips, love 'em. However, when a component is disabled (yet still visible), its Tooltip typically doesn't work.
Read more >Conditionally activate Material UI tooltip? - Stack Overflow
In the following scenario, we will use state to set showing the tooltip when we enter the mouse over the element , and...
Read more >Conditional Appearence module - tooltip suggestion
We designed the Conditional Appearance module to control various properties of controls and provided implementation for the most useful ...
Read more >Conditional Viz in Tooltip | Tableau Software - Knowledge Base
Issue. Cannot display a conditional viz in tooltip when hovering over different dimension members. Environment. Tableau Desktop. Resolution.
Read more >Conditional Fields - DocuSign Support
With conditional fields, you can hide fields until the recipient makes an entry in your document that triggers the fields to show.
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
Checkout this plunker: http://plnkr.co/edit/avi4waT0FrpwN4vmgAdG?p=preview
Current code needs:
Which can be replaced by simply:
[isDisabled] = "isDisabled()"
Imagine 100s of tooltip in an app. Wouldn’t the last code be easier for the developer?
Checkout this plunker: http://plnkr.co/edit/CSMT8u?p=preview
You can pass different values based on your condition. If you want to disable tooltip, simply pass an empty string.