|Kit
Changelog

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.

View DataTable

Campus issues

7 rows
Screen flickersComputerBess
Keyboard missing keysComputerBess
Door badge reader offlineRoomPaul
Headset jack looseComputerMade
3 rows
Projector won't startRoomPaul
No network on row 7ComputerMade
Heating stuck onRoomBess
4 rows
Session freezes at loginComputerMade
Chair brokenRoomBess
Whiteboard unmountedRoomPaul
Light flickersRoomMade
14 rows in 3 groups

Changes

  • added7
  • DataTable

    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

    #456
  • DataTable

    enableGrouping adds a Group menu to the toolbar: "Group by", "Then by" and "Hide empty groups"

    #456
  • DataTable

    Groups page on their own: groupPageSize rows, then "Show N more"; the footer shows the total while grouped

    #456
  • DataTable

    In selection mode a group header carries a tri-state checkbox for its rows

    #456
  • DataTable

    manualGrouping, groups and onGroupShowMore let the server own the groups and their totals

    #456
  • DataTable

    A grouped column is hidden while grouped; hideGroupedColumns={false} keeps it

    #456
  • DataTable

    meta.groupable and meta.groupOrder on a column, renderGroupHeader, the group and fold icons, and the grouping translation keys

    #456
  • changed1
  • DataTable

    dataTableFeatures registers react-table's grouping and expanding features, so Row and ColumnDef gain their members

    #456
  • fixed1
  • Notifier

    A toast raised while a Modal, Drawer or Lightbox is open paints above it, is announced, and no longer closes it when clicked

    #453

On this page