[Data-grid] empty groups allowed in grid
Provide a general summary of the feature here
We would like to add empty groups to the grid.
๐ค Expected Behavior?
Show all the groups, even when there are no items in the group.
๐ฏ Current Behavior
The grid isn't able to add groups with no items, since the groupHeaders are set per item. If there is no item for the group, the line of code 'dataSource.setGroupBy('name') is not touched.
๐ Possible Solution
Instead of iterating over items we would like to iterate over groups.
๐ฆ Context
We have multiple use-cases for grids with empty group headers. We would like to add a create button to these group headers to add an item.
๐ป Examples
No response
๐ค Your name
Pauline Kingma
๐งข Your Product/Team
Magister
In addition to this for Magister we also designed the ability to have actions on the group level. In our case the groups could already be there (empty) and can be filled with items by using a plus button.
See this screenshot below:
Notion grid empty row groups