diff --git a/apps/showcase/doc/common/apidoc/index.json b/apps/showcase/doc/common/apidoc/index.json index 4043c1243..0838d45b4 100644 --- a/apps/showcase/doc/common/apidoc/index.json +++ b/apps/showcase/doc/common/apidoc/index.json @@ -40617,6 +40617,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 87db22212..af3c11dc1 100755 --- a/packages/primevue/src/menu/Menu.d.ts +++ b/packages/primevue/src/menu/Menu.d.ts @@ -330,6 +330,16 @@ export interface MenuEmitsOptions { * @param {Event} event - Browser event. */ blur(event: Event): void; + /** + * Callback to invoke when the menu popup is shown. + * @remarks Emitted when {@link MenuProps.popup} is true. + */ + show(): void; + /** + * Callback to invoke when the menu popup is hidden. + * @remarks Emitted when {@link MenuProps.popup} is true. + */ + hide(): void; } export declare type MenuEmits = EmitFn;