Skip to content

Commit 50e3f63

Browse files
Update tdb-react-table.md
1 parent db325a9 commit 50e3f63

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

guides/reference-guides/document-ui-templates/tdb-react-table.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The library has two main components [`TDBReactTable`](#tdbreacttable) and [`Adva
3131
The following options are supported on any column object you can pass to columns.
3232
| Properties |Description |
3333
|---|---|
34-
| `accessor:String|Function(originalRow, rowIndex) => any` | - Required - This string/function is used to build the data model for your column.
34+
| `accessor:String`| - Function(originalRow, rowIndex) => any - Required - This string/function is used to build the data model for your column.
3535
| `id: String`| - Required - This is the unique ID for the column. It is used as a reference in things like sorting, grouping, filtering etc.
3636
|`Header: String`| - Optional, the column title, the id will used if this property is not provided
3737
|`width:Number`| - Optional |
@@ -91,7 +91,7 @@ useEffect(() => {
9191

9292
return <Container className='my-5'>
9393
<Alert><pre>{`Row selected id ${rowSelected}`}
94-
You need to Impemant a logic to change the Hidden status</pre> </Alert>
94+
You need to Implement a logic to change the Hidden status</pre> </Alert>
9595

9696
<Alert><pre>{`YOU NEED TO IMPLEMENT A FILTER LOGIC, Table filter ${JSON.stringify(filter)}`}</pre></Alert>
9797

@@ -148,6 +148,7 @@ The following options are supported on any files object that you can pass to fie
148148
|`defaultOperator:String`| - Optional - the default operator for the type
149149
|`fieldSettings`| - Optional - an Array of options for the valuetype ENUM
150150
|`subfields`| - Optional - a list of subfields for the type `!group` valuetype Object
151+
151152
```json
152153
{"myfield":{
153154
"label":"myfiledLabel",
@@ -157,7 +158,8 @@ The following options are supported on any files object that you can pass to fie
157158
}
158159
}
159160
```
160-
[advancedSearchMatchType code](....)
161+
162+
[advancedSearchMatchType code](https://github.com/terminusdb/terminusdb-dashboard/blob/main/packages/tdb-react-table/src/advancedSearchUtils.js)
161163

162164
**You can use the following method to format the advanced search fields**
163165

0 commit comments

Comments
 (0)