From 4891709ed0df5f39ae50951ff33bc3e7fdde744c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=2E=20Hansen?= Date: Thu, 18 May 2023 05:38:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#65526=20Added=20ty?= =?UTF-8?q?pes/jqueryui=20TooltipUIParams.tooltip=20by=20@Andrioden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/jqueryui/index.d.ts | 1 + types/jqueryui/jqueryui-tests.ts | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/types/jqueryui/index.d.ts b/types/jqueryui/index.d.ts index b67a08d8bca09a..dd53565aa6d4ca 100644 --- a/types/jqueryui/index.d.ts +++ b/types/jqueryui/index.d.ts @@ -927,6 +927,7 @@ declare namespace JQueryUI { } interface TooltipUIParams { + tooltip: JQuery; } interface TooltipEvent { diff --git a/types/jqueryui/jqueryui-tests.ts b/types/jqueryui/jqueryui-tests.ts index 7d54c90731b4e2..dcbbc2174c1561 100644 --- a/types/jqueryui/jqueryui-tests.ts +++ b/types/jqueryui/jqueryui-tests.ts @@ -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]",