-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(material/menu): add support for context menu #31383
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
base: main
Are you sure you want to change the base?
Conversation
Moves most of the menu trigger logic into a base class so it can be reused for the context menu.
Adds the new `MatContextMenuTrigger` directive that allows users to mark an area as a trigger for a menu. When the user right-clicks inside of the area, the menu will be opened next to their pointer. Fixes angular#5007.
@@ -6,97 +6,27 @@ | |||
* found in the LICENSE file at https://angular.dev/license | |||
*/ | |||
|
|||
import { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff in this file is large. It boils down to me moving the shared trigger logic into a base class so it can be reused.
Sets up a test harness for the context menu.
Sets up a live example showing how the context menu works.
Deployed dev-app for eafd7bb to: https://ng-dev-previews-comp--pr-angular-components-31383-dev-21soxq81.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
Adds the new
MatContextMenuTrigger
directive that allows users to mark an area as a trigger for a menu. When the user right-clicks inside of the area, the menu will be opened next to their pointer.Fixes #5007.