components icon indicating copy to clipboard operation
components copied to clipboard

[Data-grid] empty groups allowed in grid

Open PaulineKK opened this issue 1 year ago โ€ข 1 comments

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

PaulineKK avatar Sep 12 '24 14:09 PaulineKK

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: image

jtalen avatar Sep 13 '24 09:09 jtalen

Notion grid empty row groups Image

arecuenco-dsgn avatar Oct 30 '24 13:10 arecuenco-dsgn