0.27.0
Row grouping for DataTable, and toasts that stay above an open modal
DataTable groups its rows by a column, the way a Notion table view does: a header per group with a fold chevron and a count, rows paged inside each group, a tri-state checkbox per group, and up to two levels. A Group menu in the toolbar picks the grouping, and a server can own the groups and their totals. Toasts raised while a Modal, Drawer or Lightbox is open now paint above it, are announced, and no longer close it when clicked.
Spotlight
Grouped rows
grouping groups the rows by a column. Each group gets a header with a fold chevron, its value drawn by the column's own cell, and a row count; it pages on its own with "Show more", and in selection mode its checkbox selects its rows. enableGrouping adds the Group menu, which also offers a second level. Columns opt in with meta.groupable.
Campus issues
7 rows | |||
|---|---|---|---|
| Screen flickers | Computer | Bess | |
| Keyboard missing keys | Computer | Bess | |
| Door badge reader offline | Room | Paul | |
| Headset jack loose | Computer | Made | |
3 rows | |||
| Projector won't start | Room | Paul | |
| No network on row 7 | Computer | Made | |
| Heating stuck on | Room | Bess | |
4 rows | |||
| Session freezes at login | Computer | Made | |
| Chair broken | Room | Bess | |
| Whiteboard unmounted | Room | Paul | |
| Light flickers | Room | Made | |
Changes
- added7
- DataTable#456
Rows group by a column with
grouping: a header per group with a fold chevron, the group's value and its row count, up to two levels deep - DataTable#456
enableGroupingadds a Group menu to the toolbar: "Group by", "Then by" and "Hide empty groups" - DataTable#456
Groups page on their own:
groupPageSizerows, then "Show N more"; the footer shows the total while grouped - DataTable#456
In selection mode a group header carries a tri-state checkbox for its rows
- DataTable#456
manualGrouping,groupsandonGroupShowMorelet the server own the groups and their totals - DataTable#456
A grouped column is hidden while grouped;
hideGroupedColumns={false}keeps it - DataTable#456
meta.groupableandmeta.groupOrderon a column,renderGroupHeader, thegroupandfoldicons, and the grouping translation keys - changed1
- DataTable#456
dataTableFeaturesregisters react-table's grouping and expanding features, soRowandColumnDefgain their members - fixed1
- Notifier#453
A toast raised while a Modal, Drawer or Lightbox is open paints above it, is announced, and no longer closes it when clicked