-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tooltip): add openDelay and closeDelay
Closes #1052
- Loading branch information
1 parent
3039e11
commit 1b8abae
Showing
8 changed files
with
260 additions
and
16 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
demo/src/app/components/tooltip/demos/delay/tooltip-delay.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<p> | ||
When using non-manual triggers, you can control the delay to open and close the tooltip through the <code>openDelay</code> and | ||
<code>closeDelay</code> properties. Note that the <code>autoClose</code> feature does not use the close delay, it closes the tooltip immediately. | ||
</p> | ||
|
||
<button type="button" class="btn btn-outline-secondary mr-2" | ||
ngbTooltip="You see, I show up after 300ms and disappear after 500ms!" | ||
[openDelay]="300" [closeDelay]="500"> | ||
Hover 300ms here | ||
</button> | ||
<button type="button" class="btn btn-outline-secondary mr-2" | ||
ngbTooltip="You see, I show up after 1s and disappear after 2s!" | ||
[openDelay]="1000" [closeDelay]="2000"> | ||
Hover 1s here | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'ngbd-tooltip-delay', | ||
templateUrl: './tooltip-delay.html' | ||
}) | ||
export class NgbdTooltipDelay { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters