@gridkitjs/core v0.8.0
Minor Changes#
-
388def3:
moveGroupByBefore/movesGroupBy— the group-by counterpart ofmoveColumnBefore/movesColumn, positioning a column withinGroupByStatein front of another, or inserting it fresh if it isn't grouped yet. Backs the new drag-a-header-into-the-group-by-bar and drag-a-chip-to-reorder interactions in@gridkitjs/react.ColumnDefinitiongainsgroupByDraggable(whether a column's header may be dragged into the group-by bar) andgroupToggleIcon(whether a groupable header shows its group-toggle icon), mirroringsortable/reorderable.ColumnResolveOptions/ResolvedColumngain the matchinggroupByDraggablefield. -
388def3: Row grouping primitives:
groupRowsreshapes filtered/sorted rows into a flat, depth-first list of group headers and data rows, stacked outer-to-inner by aGroupByState. New exports:groupRows,groupRowId,toggleGroupExpansion,expandAllGroups,collapseAllGroups, and the typesGroupByState/GroupByEntry/GroupByEvent/GroupExpansionState/GroupExpansionEvent/ResolvedGroupRow/DisplayRow.ColumnDefinitiongains agroupablefield, mirroringsortable.Breaking:
KeyShortcutCapabilities(consumed bybuildKeyShortcuts) gains a requiredgroupable: booleanfield.