From 83545ed520d3dbbdaf5a005183a61b3cc0137826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Mich=C3=A1lek?= Date: Mon, 13 Jan 2025 08:54:28 +0100 Subject: [PATCH] feat(menu): add hide/show events to docs --- apps/showcase/doc/common/apidoc/index.json | 26 ++++++++++++++++++++++ packages/primevue/src/menu/Menu.d.ts | 8 +++---- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/apps/showcase/doc/common/apidoc/index.json b/apps/showcase/doc/common/apidoc/index.json index 7eab7b364..27b076cf9 100644 --- a/apps/showcase/doc/common/apidoc/index.json +++ b/apps/showcase/doc/common/apidoc/index.json @@ -394,6 +394,13 @@ "type": "Function", "default": "" }, + { + "name": "getFieldState", + "optional": false, + "readonly": false, + "type": "Function", + "default": "" + }, { "name": "validate", "optional": false, @@ -1030,6 +1037,13 @@ "type": "Function", "default": "" }, + { + "name": "getFieldState", + "optional": false, + "readonly": false, + "type": "Function", + "default": "" + }, { "name": "handleSubmit", "optional": false, @@ -40597,6 +40611,18 @@ ], "returnType": "void", "description": "Callback to invoke when the component loses focus." + }, + { + "name": "show", + "parameters": [], + "returnType": "void", + "description": "Callback to invoke when the menu popup is shown." + }, + { + "name": "hide", + "parameters": [], + "returnType": "void", + "description": "Callback to invoke when the menu popup is hidden." } ] }, diff --git a/packages/primevue/src/menu/Menu.d.ts b/packages/primevue/src/menu/Menu.d.ts index ad677d9b6..af3c11dc1 100755 --- a/packages/primevue/src/menu/Menu.d.ts +++ b/packages/primevue/src/menu/Menu.d.ts @@ -331,13 +331,13 @@ export interface MenuEmitsOptions { */ blur(event: Event): void; /** - * Callback to invoke when the overlay is shown. - * @remarks Emitted when {@link MenuProps.popup} is true + * Callback to invoke when the menu popup is shown. + * @remarks Emitted when {@link MenuProps.popup} is true. */ show(): void; /** - * Callback to invoke when the overlay is hidden. - * @remarks Emitted when {@link MenuProps.popup} is true + * Callback to invoke when the menu popup is hidden. + * @remarks Emitted when {@link MenuProps.popup} is true. */ hide(): void; }