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.

Feature Request: Enable tooltip conditionally

See original GitHub issue

ui-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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
shyamal890commented, Jan 31, 2018

Checkout this plunker: http://plnkr.co/edit/avi4waT0FrpwN4vmgAdG?p=preview

Current code needs:

  (mouseenter)="isDisabled() && t.open()"
  (mouseleave)="t.close()"
  #t="ngbTooltip" 
  triggers="manual"

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?

1reaction
belall-shaikhcommented, Feb 6, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

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