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 #300

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

sissbruecker
Copy link
Contributor

Description

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

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

Type of change

  • Feature

@sissbruecker sissbruecker force-pushed the feat/menu-bar-custom-item-type branch from 4a64f1e to 90f35c5 Compare February 25, 2025 09:06
@sissbruecker sissbruecker merged commit 9b03316 into main Feb 25, 2025
2 checks passed
@sissbruecker sissbruecker deleted the feat/menu-bar-custom-item-type branch February 25, 2025 09:39
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