Merge pull request #7080 from J-Michalek/feat/menu-types

docs(menu): add show/hide events to types and docs
pull/7064/merge
Tuğçe Küçükoğlu 2025-01-13 11:22:19 +03:00 committed by GitHub
commit e77e17fba3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

View File

@ -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."
}
]
},

View File

@ -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<MenuEmitsOptions>;