Skip to content

Should mat-menu-item _triggersSubMenu be public? #10802

Open

Description

Bug, feature request, or proposal:

Feature request

Background

We couldn't use mat-menu directly because it didn't support our use cases. As a result, the code base I am working on has following components:

  • own menu item component that wraps mat-menu-item.
  • our own menu component that extends mat-menu.
  • our own trigger directive that forks of matMenuTriggerFor

This worked for us, but we needed to set private _triggersSubMenu property here: https://github.com/angular/material2/blob/be84566caa61e4d59a93be1a84dbe7cfe090c8c1/src/lib/menu/menu-item.ts#L68

Should mat-menu-item take this as an @input() to make this component more extensible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    GThis is is related to a Google internal issueP4A relatively minor issue that is not relevant to core functionsarea: material/menufeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: discussionFurther discussion with the team is needed before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions