Repository navigation
feat: reorder columns by dragging or from a menu - #27
Merged
Merged
Conversation
Sheet's enableColumnOrdering gives each movable header a grip. Drag it onto another header, or click it for a menu that moves the column one place left or right, which works from the keyboard, on touch screens and with screen readers. The new position is announced. A column with meta: { enableColumnOrdering: false } stays put, a column stays in its group, and the order is TanStack's columnOrder.
This was referenced Nov 27, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Etiquettes of raising a PR
PR reviews are a way to request peers to give feedback on the code that is going
to the mainline. This means, that PR should be in a reviewable state. Please ensure
that the following checkboxes are ticked. If any of them are not ticked, then
the PR is not ready for review
Related issue
mainonce feat!: resize columns without re-rendering the sheet #26 merges.Functionalities added or changed
<Sheet enableColumnOrdering />, off by default. Each movable header gets a grip, shown on hover or focus and always on touch screens:meta: { enableColumnOrdering: false }keeps a column where it is, and others move around it.columnOrder, so it saves and loads like any TanStack state.architecture.mdanddecisions.md.Additional info
columnOrderstate andsetColumnOrderdecisions.md("Moving columns") gives each one's source.metastays untyped: typing it through the sheet's feature set stopped apps' interface-typedmetavalues from compiling.Sheetrenders a live region beside the table, because the table may hold only rows.Checklist
Screenshots
Page(s) if applicable
To follow.