mirror of
https://github.com/gosticks/react-table.git
synced 2026-08-11 20:40:17 +00:00
documentation formatting fix (#986)
This commit is contained in:
committed by
Tanner Linsley
parent
3246336120
commit
4c9b44ab48
+3
-2
@@ -71,7 +71,7 @@ You include the HOC in the same manner as you would for the treeTableHOC but the
|
||||
**Note:** The select field defaults to the accessor `_id` property in order to render the select field for that particular row. If your objects have different
|
||||
unique ID fields, make sure to tell React Table that by passing it the `keyField` property.
|
||||
|
||||
```Javascript
|
||||
```javascript
|
||||
<ReactTable keyField='id' />
|
||||
```
|
||||
|
||||
@@ -190,10 +190,11 @@ render() {
|
||||
/>
|
||||
}
|
||||
```
|
||||
#### Custom Compoments
|
||||
#### Custom Components
|
||||
- FoldIconComponent: to render the Icon of buttons.
|
||||
- FoldButtonComponent: to render the folding buttons for each Column.
|
||||
With default rendering as below.
|
||||
|
||||
```javascript
|
||||
const defaultFoldIconComponent = ({ collapsed }) => {
|
||||
//Render your Icon here
|
||||
|
||||
Reference in New Issue
Block a user