Skip to content

Commit feb1c6d

Browse files
committed
rename processingFns to rowModelFns
1 parent de4fcdf commit feb1c6d

File tree

28 files changed

+47
-47
lines changed

28 files changed

+47
-47
lines changed

docs/guide/sorting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const table = useTable({
130130
})
131131
```
132132

133-
### Sorting ProcessingFns
133+
### Sorting RowModelFns
134134

135135
The default sorting function for all columns is inferred from the data type of the column. However, it can be useful to define the exact sorting function that you want to use for a specific column, especially if any of your data is nullable or not a standard data type.
136136

examples/react/basic-table-helper/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const defaultData: Array<Person> = [
5555
const tableHelper = createTableHelper({
5656
_features: {},
5757
_rowModels: {}, // client-side row models. `Core` row model is now included by default, but you can still override it here
58-
_processingFns: {}, // client-side processing functions used by the row models (sorting, filtering, etc.). Not needed in this basic example
58+
_rowModelFns: {}, // client-side processing functions used by the row models (sorting, filtering, etc.). Not needed in this basic example
5959
debugTable: true,
6060
// TData: {} as Person, // optionally, set the TData type for the table helper. Omit if this will be a table helper for multiple tables of all different data types
6161
})

examples/react/custom-features/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function App() {
193193
paginatedRowModel: createPaginatedRowModel(),
194194
sortedRowModel: createSortedRowModel(),
195195
},
196-
_processingFns: {
196+
_rowModelFns: {
197197
filterFns,
198198
sortFns,
199199
},

examples/react/expanding/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const tableHelper = createTableHelper({
3333
rowSortingFeature,
3434
rowSelectionFeature,
3535
},
36-
_processingFns: {
36+
_rowModelFns: {
3737
filterFns: filterFns,
3838
sortFns: sortFns,
3939
},

examples/react/filters-faceted/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function App() {
102102

103103
const table = useTable({
104104
_features,
105-
_processingFns: {
105+
_rowModelFns: {
106106
filterFns,
107107
sortFns,
108108
},

examples/react/filters-fuzzy/src/main.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ const fuzzySort: SortingFn<typeof _features, Person> = (
6666
// Only sort by rank if the column has ranking information
6767
if (rowA.columnFiltersMeta[columnId]) {
6868
dir = compareItems(
69-
rowA.columnFiltersMeta[columnId].itemRank,
70-
rowB.columnFiltersMeta[columnId].itemRank,
69+
rowA.columnFiltersMeta[columnId].itemRank!,
70+
rowB.columnFiltersMeta[columnId].itemRank!,
7171
)
7272
}
7373

@@ -131,7 +131,7 @@ function App() {
131131

132132
const table = useTable<typeof _features, Person>({
133133
_features,
134-
_processingFns: {
134+
_rowModelFns: {
135135
filterFns,
136136
},
137137
_rowModels: {

examples/react/filters/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function App() {
109109
sortedRowModel: createSortedRowModel(),
110110
paginatedRowModel: createPaginatedRowModel(),
111111
},
112-
_processingFns: {
112+
_rowModelFns: {
113113
filterFns, // client side filtering
114114
sortFns,
115115
},

examples/react/pagination/src/main.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
createSortedRowModel,
99
filterFns,
1010
flexRender,
11-
processingFns,
11+
rowModelFns,
1212
rowPaginationFeature,
1313
rowSortingFeature,
1414
sortFns,
@@ -30,7 +30,7 @@ const _features = tableFeatures({
3030
rowSortingFeature,
3131
})
3232

33-
const _processingFns = processingFns(_features, {
33+
const _rowModelFns = rowModelFns(_features, {
3434
sortFns,
3535
filterFns,
3636
})
@@ -107,7 +107,7 @@ function MyTable({
107107

108108
const table = useTable({
109109
_features,
110-
_processingFns,
110+
_rowModelFns,
111111
_rowModels: {
112112
sortedRowModel: createSortedRowModel(),
113113
filteredRowModel: createFilteredRowModel(),

examples/react/sorting/src/main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989

9090
// const table = useTable({
9191
// _features,
92-
// _processingFns: {
92+
// _rowModelFns: {
9393
// sortFns,
9494
// },
9595
// _rowModels: {
@@ -224,7 +224,7 @@ export const useReactTable = createTableHelper({
224224
groupedRowModel: createGroupedRowModel(),
225225
expandedRowModel: createExpandedRowModel(),
226226
},
227-
_processingFns: {
227+
_rowModelFns: {
228228
sortFns,
229229
filterFns,
230230
aggregationFns,

examples/solid/basic-table-helper/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const defaultData: Array<Person> = [
4545
const tableHelper = createTableHelper({
4646
_features: {},
4747
_rowModels: {}, // client-side row models. `Core` row model is now included by default, but you can still override it here
48-
_processingFns: {}, // client-side processing functions used by the row models (sorting, filtering, etc.). Not needed in this basic example
48+
_rowModelFns: {}, // client-side processing functions used by the row models (sorting, filtering, etc.). Not needed in this basic example
4949
TData: {} as Person,
5050
debugTable: true,
5151
})

0 commit comments

Comments
 (0)