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: Tooltip enable check

See original GitHub issue

LIke ui-bootstrap, having an enable function would help in the conditionally showing the tooltip.

My personal use case is checking if there is anything to display, otherwise I end up seeing just a tooltip arrow.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jnizetcommented, Sep 16, 2016

Yes, I can. Just to be clear, if the user wants to conditionally pass an html template, he would have to use something like the following, right?

<template #tipContent>Hello, <b>{{name}}</b>!</template>
<button type="button" class="btn btn-secondary" [ngbTooltip]="shouldDisplayTooltip ? tipContent : null">
  I've got markup and bindings in my tooltip!
</button>

or something like the following:

<template *ngIf="shouldDisplayTooltip" #tipContent>Hello, <b>{{name}}</b>!</template>
<button type="button" class="btn btn-secondary" [ngbTooltip]="tipContent">
  I've got markup and bindings in my tooltip!
</button>

Should we close the tooltip if it’s already opened and its content becomes null?

0reactions
anreppppcommented, Mar 23, 2017

I am sorry, opening a new ticket for this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable tooltips for auto-complete fields - ADM Help Centers
Turn on the Enable Field Tooltip feature toggle, then the tooltip will pop up when you hover over fields that use the auto-complete...
Read more >
Tooltips / Annotations that appear WHILE using interactive ...
- To be able to enable or disable an option "always visible". If disabled, the comments will be shown just on click (or...
Read more >
Feature request: Tooltips on mobile - Features - Joplin Forum
Summary Currently a long press on a button doesn't display a tooltip on mobile. This makes it more difficult to tell what a...
Read more >
Tooltips on action buttons? - Feature Requests - Retool Forum
Is there a way to add tooltips? ... We have an internal feature request on file for table tooltips, ... Thanks for checking...
Read more >
Tooltip Guidelines - Nielsen Norman Group
Summary: Tooltips are user-triggered messages that provide additional information about a page element or feature. Although tooltips aren't new ...
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