Skip to content

feat(aria/menu): Menu Trigger data #32782

Closed

Description

@stephenlautier

Feature Description

Currently aria menu doesn't seem to allow passing context data to the template from the trigger e.g. same trigger data as cdkMenuTriggerData
Not sure if this feature is in scope, or can be done otherwise better

Use Case

The idea is to share the same menu within a loop, however passing the item in context e.g.

@for (item of collection; track item.id) {
	<button ngMenuTrigger #origin #trigger="ngMenuTrigger" [menu]="formatMenu()" [menuData]="item">Open Menu</button>
}
<div ngMenu class="menu" #formatMenu="ngMenu">
    <ng-template ngMenuContent let-item="item">
        <div ngMenuItem value="Mark as read" (click)="markAsRead(item)">
            <span class="icon material-symbols-outlined" translate="no" aria-hidden="true">mark_email_read</span>
            <span class="label">Mark as read</span>
        </div>
    </ng-template>
</div>

Activity

  1. added
    featureLabel used to distinguish feature request from other issues
    needs triageThis issue needs to be triaged by the team
    on Feb 17, 2026
  2. added
    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
    and removed
    needs triageThis issue needs to be triaged by the team
    on Feb 19, 2026
  3. self-assigned this
    on Apr 1, 2026
  4. assigned and unassigned on May 26, 2026
  5. crisbeto commented on May 26, 2026

    @crisbeto
    Member

    Closing based on the discussion in #33303.

  6. angular-automatic-lock-bot commented on Jun 26, 2026

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: aria/menufeatureLabel 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