feat(menu): add hide/show events to docs

pull/7080/head
Jakub Michálek 2025-01-13 08:54:28 +01:00
parent a989dbcb60
commit 83545ed520
2 changed files with 30 additions and 4 deletions

View File

@ -394,6 +394,13 @@
"type": "Function", "type": "Function",
"default": "" "default": ""
}, },
{
"name": "getFieldState",
"optional": false,
"readonly": false,
"type": "Function",
"default": ""
},
{ {
"name": "validate", "name": "validate",
"optional": false, "optional": false,
@ -1030,6 +1037,13 @@
"type": "Function", "type": "Function",
"default": "" "default": ""
}, },
{
"name": "getFieldState",
"optional": false,
"readonly": false,
"type": "Function",
"default": ""
},
{ {
"name": "handleSubmit", "name": "handleSubmit",
"optional": false, "optional": false,
@ -40597,6 +40611,18 @@
], ],
"returnType": "void", "returnType": "void",
"description": "Callback to invoke when the component loses focus." "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

@ -331,13 +331,13 @@ export interface MenuEmitsOptions {
*/ */
blur(event: Event): void; blur(event: Event): void;
/** /**
* Callback to invoke when the overlay is shown. * Callback to invoke when the menu popup is shown.
* @remarks Emitted when {@link MenuProps.popup} is true * @remarks Emitted when {@link MenuProps.popup} is true.
*/ */
show(): void; show(): void;
/** /**
* Callback to invoke when the overlay is hidden. * Callback to invoke when the menu popup is hidden.
* @remarks Emitted when {@link MenuProps.popup} is true * @remarks Emitted when {@link MenuProps.popup} is true.
*/ */
hide(): void; hide(): void;
} }