|
1
|
{ |
|
2
|
"description": "This component creates a data table with filters, pagination, sorting, and more.\nIt's built on top of the `Table` component while expanding its functionality.\nThe `DataTable` is useful to create tables similar to those in the Medusa Admin dashboard.", |
|
3
|
"methods": [], |
|
4
|
"displayName": "DataTable", |
|
5
|
"props": { |
|
6
|
"instance": { |
|
7
|
"required": true, |
|
8
|
"tsType": { |
|
9
|
"name": "UseDataTableReturn", |
|
10
|
"elements": [ |
|
11
|
{ |
|
12
|
"name": "TData" |
|
13
|
} |
|
14
|
], |
|
15
|
"raw": "UseDataTableReturn<TData>" |
|
16
|
}, |
|
17
|
"description": "The instance returned by the `useDataTable` hook." |
|
18
|
}, |
|
19
|
"children": { |
|
20
|
"required": false, |
|
21
|
"tsType": { |
|
22
|
"name": "ReactReactNode", |
|
23
|
"raw": "React.ReactNode" |
|
24
|
}, |
|
25
|
"description": "The children of the component." |
|
26
|
}, |
|
27
|
"className": { |
|
28
|
"required": false, |
|
29
|
"tsType": { |
|
30
|
"name": "string" |
|
31
|
}, |
|
32
|
"description": "Additional classes to pass to the wrapper `div` of the component." |
|
33
|
} |
|
34
|
} |
|
35
|
} |