From 4a483214ff969bf9c6ca8d6e4979c4a8f6b51071 Mon Sep 17 00:00:00 2001 From: Mario Ribeiro Date: Fri, 6 Mar 2020 22:31:14 +0000 Subject: [PATCH] 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. --- docs/api/useRowSelect.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/api/useRowSelect.md b/docs/api/useRowSelect.md index 34db390..9d8ad72 100644 --- a/docs/api/useRowSelect.md +++ b/docs/api/useRowSelect.md @@ -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