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 drag-reordering of dashboard items #7738

Merged
merged 13 commits into from
Sep 5, 2024

Conversation

tomivirkki
Copy link
Member

@tomivirkki tomivirkki commented Sep 2, 2024

Description

Add support for DnD reordering of <vaadin-dashboard> widgets and sections

Kapture.2024-09-02.at.09.54.19.mp4

Added API:

  • editable if true, the widget/section header controls are visible
  • Events:
    • dashboard-item-reorder-start: Fired when item reordering starts
    • dashboard-item-reorder-end: Fired when item reordering ends
    • dashboard-item-drag-reorder: Fired when an items will be reordered by dragging
      • event.item: The item being dragged
      • event.targetIndex: The new index of the item in its host items array

Fixes https://github.com/orgs/vaadin/projects/70/views/1?pane=issue&itemId=74625606

Part of vaadin/platform#6626

Type of change

Feature

…ard-widget-reorder

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

@ugur-vaadin ugur-vaadin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Added one change suggestion for a typo.

tomivirkki and others added 2 commits September 5, 2024 09:47
# Conflicts:
#	packages/dashboard/src/vaadin-dashboard-section.js
#	packages/dashboard/test/helpers.ts
Copy link

sonarcloud bot commented Sep 5, 2024

@tomivirkki tomivirkki merged commit b5bc352 into feat/dashboard Sep 5, 2024
9 checks passed
@tomivirkki tomivirkki deleted the feat/dashboard-widget-reorder branch September 5, 2024 07:10
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