Skip to content

Commit

Permalink
feat(menu): add hide/show events to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Michálek committed Jan 13, 2025
1 parent a989dbc commit 83545ed
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
26 changes: 26 additions & 0 deletions apps/showcase/doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,13 @@
"type": "Function",
"default": ""
},
{
"name": "getFieldState",
"optional": false,
"readonly": false,
"type": "Function",
"default": ""
},
{
"name": "validate",
"optional": false,
Expand Down Expand Up @@ -1030,6 +1037,13 @@
"type": "Function",
"default": ""
},
{
"name": "getFieldState",
"optional": false,
"readonly": false,
"type": "Function",
"default": ""
},
{
"name": "handleSubmit",
"optional": false,
Expand Down Expand Up @@ -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."
}
]
},
Expand Down
8 changes: 4 additions & 4 deletions packages/primevue/src/menu/Menu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 83545ed

Please sign in to comment.