Skip to content

Support [md-menu-trigger-for] with anything conforming to MdMenu interface #1560

Closed
@jelbourn

Description

@jelbourn

Right now, [md-menu-trigger-for] requires that its value be an instance of MdMenu:

<button md-icon-button [md-menu-trigger-for]="menu"> Open Menu </button>

<md-menu #menu="mdMenu">
  <button md-menu-item> Hello! </button>
</md-menu>

It would be more flexible to allow the value to be anything that conforms to the expected interface (something like interface MdCustomMenu).

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions