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

View File

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