github jbetancur/react-data-table-component v8.4.0

6 hours ago

8.4.0

New features

  • Removable sorting — clicking a sorted header now cycles asc → desc → unsorted, so a sort can be cleared without reloading the page. → Sorting docs
  • Multi-column sorting — new sortMulti prop. Ctrl/⌘-click headers to build a sort stack; priority follows click order and a numbered badge marks each sorted column. → Sorting docs (#1325)
  • SortColumn<T> type exported — represents a single entry in the sort stack ({ column, sortDirection }).
  • onSort gains a fourth sortColumns: SortColumn<T>[] argument with the full sort config. Existing three-argument handlers are unaffected.

Behavior changes

  • A third click on a sorted header now removes the sort (previously it stayed on descending). Server-side onSort handlers should treat an empty sortColumns array as "no sort" and drop their ORDER BY. This was always the intent buy 8.0.0 accidentally shipped without it

Don't miss a new react-data-table-component release

NewReleases is sending notifications on new releases.