Merge pull request #7080 from J-Michalek/feat/menu-types
docs(menu): add show/hide events to types and docspull/7064/merge
commit
e77e17fba3
|
@ -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."
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -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>;
|
||||
|
|
Loading…
Reference in New Issue