Skip to content

Commit 2e91b28

Browse files
authored
docs: better rowKey type (#832)
1 parent 8934c14 commit 2e91b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ React.render(<Table columns={columns} data={data} />, mountNode);
102102
| expandable.onExpand | Function(expanded, record) | | function to call when click expand icon |
103103
| expandable.onExpandedRowsChange | Function(expandedRows) | | function to call when the expanded rows change |
104104
| expandable.fixed | String \| Boolean | - | this expand icon will be fixed when table scroll horizontally: true or `left` or `right` and `expandIconColumnIndex` need to stay first or last |
105-
| rowKey | string or Function(record):string | 'key' | If rowKey is string, `record[rowKey]` will be used as key. If rowKey is function, the return value of `rowKey(record)` will be use as key. |
105+
| rowKey | string or Function(record, index):string | 'key' | If rowKey is string, `record[rowKey]` will be used as key. If rowKey is function, the return value of `rowKey(record, index)` will be use as key. |
106106
| rowClassName | string or Function(record, index, indent):string | | get row's className |
107107
| rowRef | Function(record, index, indent):string | | get row's ref key |
108108
| data | Object[] | | data record array to be rendered |

0 commit comments

Comments
 (0)