Skip to content

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

Description

@jelbourn

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

<buttonmd-icon-button[md-menu-trigger-for]="menu"> Open Menu </button><md-menu#menu="mdMenu"><buttonmd-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

    featureLabel used to distinguish feature request from other issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions