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
Copy file name to clipboardExpand all lines: docs/api/core/column-def.md
+12-10
Original file line number
Diff line number
Diff line change
@@ -69,19 +69,21 @@ footer?:
69
69
}) =>unknown)
70
70
```
71
71
72
-
The footer to display for the column. If a function is passed, it will be passed a props object for the header and should return the rendered header value (the exact type depends on the adapter being used).
72
+
The footer to display for the column. If a function is passed, it will be passed a props object for the footer and should return the rendered footer value (the exact type depends on the adapter being used).
73
73
74
74
### `cell`
75
75
76
76
```tsx
77
-
cell?: ((props: {
78
-
table:Table<TData>
79
-
row:Row<TData>
80
-
column:Column<TData>
81
-
cell:Cell<TData>
82
-
getValue: () =>any
83
-
renderValue: () =>any
84
-
}) =>unknown)
77
+
cell?:
78
+
|string
79
+
| ((props: {
80
+
table:Table<TData>
81
+
row:Row<TData>
82
+
column:Column<TData>
83
+
cell:Cell<TData>
84
+
getValue: () =>any
85
+
renderValue: () =>any
86
+
}) =>unknown)
85
87
```
86
88
87
89
The cell to display each row for the column. If a function is passed, it will be passed a props object for the cell and should return the rendered cell value (the exact type depends on the adapter being used).
@@ -92,7 +94,7 @@ The cell to display each row for the column. If a function is passed, it will be
92
94
meta?:ColumnMeta// This interface is extensible via declaration merging. See below!
93
95
```
94
96
95
-
The meta data to associated with the column. We can access it anywhere when the column is available via `column.columnDef.meta`. This type is global to all tables and can be extended like so:
97
+
The meta data to be associated with the column. We can access it anywhere when the column is available via `column.columnDef.meta`. This type is global to all tables and can be extended like so:
96
98
97
99
```tsx
98
100
import'@tanstack/react-table'//or vue, svelte, solid, etc.
0 commit comments