Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(material/menu): expose MenuCloseReason type #26458

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/material/menu/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
* found in the LICENSE file at https://angular.io/license
*/

export {MatMenu, _MatMenuBase, MAT_MENU_DEFAULT_OPTIONS, MatMenuDefaultOptions} from './menu';
export {
MatMenu,
_MatMenuBase,
MAT_MENU_DEFAULT_OPTIONS,
MatMenuDefaultOptions,
MenuCloseReason,
} from './menu';
export * from './menu-item';
export * from './menu-content';
export {
Expand Down
3 changes: 3 additions & 0 deletions tools/public_api_guard/material/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ export abstract class _MatMenuTriggerBase implements AfterContentInit, OnDestroy
// @public @deprecated
export const MENU_PANEL_TOP_PADDING = 8;

// @public
export type MenuCloseReason = void | 'click' | 'keydown' | 'tab';

// @public
export type MenuPositionX = 'before' | 'after';

Expand Down