Skip to content

Commit 4891709

Browse files
authored
🤖 Merge PR DefinitelyTyped#65526 Added types/jqueryui TooltipUIParams.tooltip by @Andrioden
1 parent a0dad36 commit 4891709

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎types/jqueryui/index.d.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,7 @@ declare namespace JQueryUI {
927927
}
928928

929929
interface TooltipUIParams {
930+
tooltip: JQuery;
930931
}
931932

932933
interface TooltipEvent {

‎types/jqueryui/jqueryui-tests.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,13 @@ function test_tooltip() {
17531753
show: {
17541754
effect: "slideDown",
17551755
delay: 250
1756-
}
1756+
},
1757+
open: function(event, ui) {
1758+
ui.tooltip.animate({ top: ui.tooltip.position().top + 5 }, 'fast')
1759+
},
1760+
close: function(event, ui) {
1761+
ui.tooltip.animate({ top: ui.tooltip.position().top + 5 }, 'fast')
1762+
},
17571763
});
17581764
$(document).tooltip({
17591765
items: "img, [data-geo], [title]",

0 commit comments

Comments
 (0)