-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat(tooltip): added Tooltip delay functionality #1116
feat(tooltip): added Tooltip delay functionality #1116
Conversation
Current coverage is 85.62% (diff: 100%)
@@ development #1116 diff @@
=============================================
Files 35 35
Lines 1280 1280
Methods 228 228
Messages 0 0
Branches 213 213
=============================================
Hits 1096 1096
Misses 184 184
Partials 0 0
|
Except 2 small changes looks great to me 👍 |
Do you want me to change anything else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this 3 small things
|
||
this.triggerStateChanged(); | ||
this.delayTimeoutId = setTimeout(() => { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
} | ||
|
||
// params event, target | ||
@HostListener('focusout') | ||
@HostListener('mouseleave') | ||
public hide():void { | ||
if (this.delayTimeoutId) { | ||
clearTimeout(this.delayTimeoutId); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@@ -33,6 +34,8 @@ export class TooltipDirective { | |||
private visible:boolean = false; | |||
private tooltip:ComponentRef<any>; | |||
|
|||
private delayTimeoutId:NodeJS.Timer; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@Serginho oh, sorry I did not saw this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thank you so much
I need this functionality, so I decided to implement it.
TsLint is ok.
Docs are updated.
If I forgot something, just tell me.