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: support elements in dashboard items #7761

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

tomivirkki
Copy link
Member

Description

Support providing element instances in <vaadin-dashboard> items.

If an HTMLElement instance is passed as item.component

  • Widget items: a renderer call for the item is skipped in favor of using the provided element as the widget.
  • Section items: generating a <vaadin-dashboard-section> element internally is skipped in favor of using the provided element as the section.

This feature is added exclusively for the Dashboard Flow component's purposes, specifically to enable DashboardSection to extend Component, and thus doesn't include type definitions.

Type of change

Feature

# Conflicts:
#	packages/dashboard/src/vaadin-dashboard.js
#	packages/dashboard/test/dashboard.test.ts
Copy link

sonarqubecloud bot commented Sep 5, 2024

@tomivirkki tomivirkki merged commit a590b1b into feat/dashboard Sep 5, 2024
9 checks passed
@tomivirkki tomivirkki deleted the feat/dashboard-item-component branch September 5, 2024 08:03
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.beta1 and is also targeting the upcoming stable 24.6.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