Update useRowSelect.md (#1948)

Missing documentation for `getToggleRowSelectedProps`, used on the [example](https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/row-selection).

The `indeterminate` field is not documented at all, and I wonder what's the difference to the `checked` field.
This commit is contained in:
Mario Ribeiro
2020-03-06 15:31:14 -07:00
committed by GitHub
parent b2af02407b
commit 4a483214ff
+7
View File
@@ -58,6 +58,13 @@ The following additional properties are available on every **prepared** `row` ob
- `toggleRowSelected: Function(?set)`
- Use this function to toggle this row's selected state.
- Optionally pass `true` or `false` to set it to that state
- `getToggleRowSelectedProps: Function(props) => props`
- Use this function to get the props needed for a **select row checkbox**.
- Props:
- `onChange: Function()`
- `style.cursor: 'pointer'`
- `checked: Bool`
- `title: 'Toggle Row Selected'`
### Example