@@ -34,14 +34,15 @@ new Grid({
34
34
35
35
<div className =" full-width " >
36
36
37
- | Name | Description | Type | Example |
38
- | -----------------------| -------------------------| ------------------------------| -------------------------------------------------|
39
- | id ` optional ` | column ID for JSON data | ` string ` or function | ` phoneNumber ` or ` (row) => row.name.firstName ` |
40
- | name | column name | ` string ` | ` Name ` |
41
- | width ` optional ` | width of the column | ` string ` | ` 200px ` or ` 30% ` |
42
- | sort ` optional ` | to enable/disable sort | ` boolean ` | ` true ` or ` 0 ` |
43
- | formatter ` optional ` | custom cell formatting | function | ` (cell: TCell, row: Row<TCell>, column: TColumn) => ComponentChild; ` |
44
- | attributes ` optional ` | custom cell attributes | ` HTMLAttributes ` or function | ` (cell: TCell, row: Row<TCell>, column: TColumn) => HTMLAttributes; ` |
37
+ | Name | Description | Type | Example |
38
+ | -----------------------| ----------------------------| ------------------------------| -------------------------------------------------|
39
+ | id ` optional ` | column ID | ` string ` | ` phoneNumber ` |
40
+ | selector ` optional ` | Cell selector fo JSON data | ` function ` | ` (row) => row.name.firstName ` |
41
+ | name | column name | ` string ` | ` Name ` |
42
+ | width ` optional ` | width of the column | ` string ` | ` 200px ` or ` 30% ` |
43
+ | sort ` optional ` | to enable/disable sort | ` boolean ` | ` true ` or ` 0 ` |
44
+ | formatter ` optional ` | custom cell formatting | function | ` (cell: TCell, row: Row<TCell>, column: TColumn) => ComponentChild; ` |
45
+ | attributes ` optional ` | custom cell attributes | ` HTMLAttributes ` or function | ` (cell: TCell, row: Row<TCell>, column: TColumn) => HTMLAttributes; ` |
45
46
46
47
</div >
47
48
0 commit comments