You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the ability to remove sorting while cycling through the sorting states for a column is enabled. You can disable this behavior using the `enableSortingRemoval` table option. This behavior is useful if you want to ensure that at least one column is always sorted.
310
310
311
-
The default behavior when using either the `getToggleSortingHandler` or `toggleSorting` APIs is to cycle through the sorting states like this:
311
+
The default behavior when using either the `getToggleSortingHandler` or `toggleSorting` APIs is to cycle through the sorting states like this:
@@ -334,22 +334,22 @@ Sorting by multiple columns at once is enabled by default if using the `column.g
334
334
335
335
##### Disable Multi-Sorting
336
336
337
-
You can disable multi-sorting for either a specific column or the entire table using the `enableMultiSorting` column option or table option. Disabling multi-sorting for a specific column will replace all existing sorting with the new column's sorting.
337
+
You can disable multi-sorting for either a specific column or the entire table using the `enableMultiSort` column option or table option. Disabling multi-sorting for a specific column will replace all existing sorting with the new column's sorting.
338
338
339
339
```jsx
340
340
constcolumns= [
341
341
{
342
342
header: () =>'Created At',
343
343
accessorKey:'createdAt',
344
-
enableMultiSorting:false, // always sort by just this column if sorting by this column
344
+
enableMultiSort:false, // always sort by just this column if sorting by this column
345
345
},
346
346
//...
347
347
]
348
348
//...
349
349
consttable=useReactTable({
350
350
columns,
351
351
data,
352
-
enableMultiSorting:false, // disable multi-sorting for the entire table
352
+
enableMultiSort:false, // disable multi-sorting for the entire table
0 commit comments