@gridkitjs/core v0.5.0
Last updated August 3, 2026
Minor Changes#
-
f92198e: Selection primitives, ahead of the grid wiring them up.
toggleSelection,selectOnly,selectRange,selectAllandclearSelectiontransform an orderedSelectionStateof ids under aSelectionModeoffalse | "single" | "multiple";selectCellandtoggleCellSelectiondo the same for the singleCellSelectionState. Each returns its input by reference when nothing changed, asmoveColumnBeforedoes, so a caller can skip a render and an event on that alone.diffSelectionreports what one transition added and removed.resolveRowId(row, index, getRowId?)settles a row's identity, the counterpart togetColumnId— falling back to the row's position when nogetRowIdis given, which is enough for a static grid but ties row state to where a row sits rather than to the row.CellTemplateContextgainsrowIdandselected, so a template can key off its row or style itself to match the selection:cellTemplate: ({ value, rowId, selected }) => selected ? <strong id={rowId}>{value}</strong> : value;