Skip to content

Example using a mat-checkbox inside a mat-menu #16945

@mrmokwa

Description

@mrmokwa

Documentation Feedback

I'd like to see an example that uses mat-menu with mat-checkbox. There's no easy way to know the right way to implement it.

In stackoverflow there is a suggestion to use this way:

<mat-checkbox class="mat-menu-item">Problem here</mat-checkbox>

But using it in the class doesn't feel correct to me, also it doesn't use the property:

@Input()
role: 'menuitem' | 'menuitemradio' | 'menuitemcheckbox'

Affected documentation page: https://material.angular.io/components/menu/api

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis issue is related to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions