Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngbTooltip: add new option "delay" #1052

Closed
Coleim opened this issue Nov 16, 2016 · 4 comments
Closed

ngbTooltip: add new option "delay" #1052

Coleim opened this issue Nov 16, 2016 · 4 comments

Comments

@Coleim
Copy link

Coleim commented Nov 16, 2016

Hello,

In bootstrap 4, it seems that we have the possibility to add a delay on the tooltip display.
<div data-toggle="tooltip" data-placement="top" title="Tooltip on top" data-delay='{"show":"5000", "hide":"3000"}'></div>

But I think this feature is not available with ngbTooltip.
Is it possible to add it ?

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: 2.1.1
ng-bootstrap: 1.0.0-alpha.3
Bootstrap: 4.0.0-alpha.5

Thanks

@monkatar
Copy link

Based on the docs "tooltipPopupDelay" was available for use at some point but has since been tagged as deprecated without a replacement. It doesn't seem to work correctly anyway, so I would advise against using it.
Any updates on the state of the feature request?

@KissBalazs
Copy link

I think some of us are still interested in this feature - any updates or known solutions for this feature maybe?

One possible workaround I did is that you could do this with mouse events + html bind manually, but with dynamically generated divs it is quite ugly to manage.

@dagangalarneau
Copy link

Here's my workaround, using pure CSS:

.tooltip > div {
animation-name: delayedFadeIn;
animation-duration: 1s; /* Adjust this duration */
}

@Keyframes delayedFadeIn {
0% {opacity: 0;}
75% {opacity: 0;} /* Set this to 99% for no fade-in. */
100% {opacity: 1;}
}

@KissBalazs
Copy link

@dagangalarneau really nice solution, thank you very much!

@pkozlowski-opensource pkozlowski-opensource added this to the 3.1.0 milestone Jul 17, 2018
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Aug 2, 2018
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Aug 3, 2018
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Aug 3, 2018
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Aug 3, 2018
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Aug 3, 2018
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Aug 6, 2018
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Aug 6, 2018
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
@pkozlowski-opensource pkozlowski-opensource modified the milestones: 3.1.0, 3.2.0 Aug 17, 2018
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Aug 24, 2018
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Aug 24, 2018
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Aug 28, 2018
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Aug 28, 2018
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
@pkozlowski-opensource pkozlowski-opensource modified the milestones: 3.2.0, 3.3.0 Aug 30, 2018
@pkozlowski-opensource pkozlowski-opensource modified the milestones: 3.3.0, 3.4.0 Oct 5, 2018
@pkozlowski-opensource pkozlowski-opensource removed this from the 3.4.0 milestone Oct 19, 2018
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Nov 8, 2018
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Feb 22, 2019
This applies both to the tooltip and popover components.

Closes ng-bootstrap#1052
maxokorokov pushed a commit to divdavem/ng-bootstrap that referenced this issue Feb 25, 2019
@maxokorokov maxokorokov added this to the 4.1 milestone Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants