Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow adding custom data to context menu item types #301

Merged
merged 3 commits into from
Feb 25, 2025

Conversation

sissbruecker
Copy link
Contributor

Description

Make ContextMenu and ContextMenuItem types generic so that:

  • ContextMenuItem accepts a type for custom item data, so that you can easily create custom item types
  • ContextMenu accepts a custom item type, which restricts the items that can be set, and provides that type in the item-selected event

Part of vaadin/web-components#8700
Depends on vaadin/web-components#8698

Type of change

  • Feature

@sissbruecker sissbruecker merged commit 7164bcc into main Feb 25, 2025
2 checks passed
@sissbruecker sissbruecker deleted the feat/context-menu-custom-item-type branch February 25, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants