vaadin / vaadin/framework

Add custom empty view to the Grid component

Open
#9,954 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

Please add functionality to set custom view (Component) when there is no data in the Grid. It's called "empty state" and is used to encourage user to enter data or explain why the grid is empty (e.g. due to filtering). It could be provided explicitly by setter or by lambda provider. I think it should leave header as is and be placed in rows space. Not sure about the footer.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Grid component and its rendering path for an empty data set. Review how components are supplied and rendered in the rows area, then clarify the setter or lambda API and footer behavior; done means an empty Grid can show the custom view while preserving the header.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.