Skip to content

Commit c03946d

Browse files
authored
docs: Update column-def.md (#5385)
1 parent 5610ba2 commit c03946d

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

docs/api/core/column-def.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,21 @@ footer?:
6969
}) => unknown)
7070
```
7171

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).
7373

7474
### `cell`
7575

7676
```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)
8587
```
8688

8789
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
9294
meta?: ColumnMeta // This interface is extensible via declaration merging. See below!
9395
```
9496

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:
9698

9799
```tsx
98100
import '@tanstack/react-table' //or vue, svelte, solid, etc.

0 commit comments

Comments
 (0)