-
-
Notifications
You must be signed in to change notification settings - Fork 535
Expand file tree
/
Copy pathcellInstanceAPIs.ts
More file actions
78 lines (76 loc) · 2.77 KB
/
Copy pathcellInstanceAPIs.ts
File metadata and controls
78 lines (76 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import { type MRT_Cell } from '@glebcha/material-react-table';
export interface CellInstanceAPI {
cellInstanceAPI: keyof MRT_Cell<CellInstanceAPI>;
link?: string;
linkText?: string;
description?: string;
type?: string;
}
export const cellInstanceAPIs: CellInstanceAPI[] = [
{
cellInstanceAPI: 'column',
type: 'MRT_Column<TData>',
description: 'The associated Column object for the cell.',
link: 'https://tanstack.com/table/v8/docs/api/core/cell#column',
linkText: 'TanStack Table Cell API Docs',
},
{
cellInstanceAPI: 'getContext',
type: '() => { table: Table<TData>; column: MRT_Column<TData, TValue>; row: MRT_Row<TData>; cell: Cell<TData, TValue>; getValue: <TTValue = TValue>() => TTValue; renderValue: <TTValue = TValue>() => TTValue | null; }',
description:
'Returns the rendering context (or props) for cell-based components like cells and aggregated cells.',
link: 'https://tanstack.com/table/v8/docs/api/core/cell#getcontext',
linkText: 'TanStack Table Cell API Docs',
},
{
cellInstanceAPI: 'getIsAggregated',
type: 'Not Provided',
description: 'Not Provided',
link: 'https://tanstack.com/table/v8/docs/api/core/cell#getisaggregated',
linkText: 'TanStack Table Cell API Docs',
},
{
cellInstanceAPI: 'getIsGrouped',
type: 'Not Provided',
description: 'Not Provided',
link: 'https://tanstack.com/table/v8/docs/api/core/cell#getisgrouped',
linkText: 'TanStack Table Cell API Docs',
},
{
cellInstanceAPI: 'getIsPlaceholder',
type: 'Not Provided',
description: 'Not Provided',
link: 'https://tanstack.com/table/v8/docs/api/core/cell#getisplaceholder',
linkText: 'TanStack Table Cell API Docs',
},
{
cellInstanceAPI: 'getValue',
type: '() => any',
description:
"Returns the value for the cell, accessed via the associated column's accessor key or accessor function.",
link: 'https://tanstack.com/table/v8/docs/api/core/cell#getvalue',
linkText: 'TanStack Table Cell API Docs',
},
{
cellInstanceAPI: 'id',
type: 'string',
description: 'The unique ID for the cell across the entire table.',
link: 'https://tanstack.com/table/v8/docs/api/core/cell#id',
linkText: 'TanStack Table Cell API Docs',
},
{
cellInstanceAPI: 'renderValue',
type: 'Not Provided',
description:
'Works similar to getValue(), but has been deprecated in favor of the `flexRender` import.',
link: 'https://tanstack.com/table/v8/docs/api/core/cell#rendervalue',
linkText: 'TanStack Table Cell API Docs',
},
{
cellInstanceAPI: 'row',
type: 'MRT_Row<TData>',
description: 'The associated Row object for the cell.',
link: 'https://tanstack.com/table/v8/docs/api/core/cell#row',
linkText: 'TanStack Table Cell API Docs',
},
];