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 menu bar item types #8698

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

sissbruecker
Copy link
Contributor

@sissbruecker sissbruecker commented Feb 19, 2025

Make MenuBar and MenuBarItem types generic so that:

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

The React component will require its own set of changes, and the same should be done for context menu as well. But those can be done as a follow-up.

Part of #8700

@sissbruecker sissbruecker marked this pull request as ready for review February 20, 2025 09:23
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.7.0.alpha12 and is also targeting the upcoming stable 24.7.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants