Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#65526 Added types/jqueryui TooltipUIParams…
Browse files Browse the repository at this point in the history
….tooltip by @Andrioden
  • Loading branch information
Andrioden authored and Desplandis committed Jul 3, 2023
1 parent 0bb79cd commit e41f54f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions types/jqueryui/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,7 @@ declare namespace JQueryUI {
}

interface TooltipUIParams {
tooltip: JQuery;
}

interface TooltipEvent {
Expand Down
8 changes: 7 additions & 1 deletion types/jqueryui/jqueryui-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,13 @@ function test_tooltip() {
show: {
effect: "slideDown",
delay: 250
}
},
open: function(event, ui) {
ui.tooltip.animate({ top: ui.tooltip.position().top + 5 }, 'fast')
},
close: function(event, ui) {
ui.tooltip.animate({ top: ui.tooltip.position().top + 5 }, 'fast')
},
});
$(document).tooltip({
items: "img, [data-geo], [title]",
Expand Down

0 comments on commit e41f54f

Please sign in to comment.