| title | table title renderer | Function(currentPageData) | |
| title | table title renderer | Function(currentPageData) | |
| scroll | whether table can be scroll in x/y direction, `x` or `y` can be a number that indicated the width and height of table body | object | - |
| scroll | whether table can be scroll in x/y direction, `x` or `y` can be a number that indicates the width and height of table body | object | - |
### Column
### Column
@ -86,9 +86,9 @@ One of Property `columns` for describing column, Column has the same API.
| title | title of this column | string\|ReactNode | - |
| title | title of this column | string\|ReactNode | - |
| key | key of this column, you can ignore this prop if you've set a unique `dataIndex` | string | - |
| key | key of this column, you can ignore this prop if you've set a unique `dataIndex` | string | - |
| dataIndex | display field of the data record, could be set like `a.b.c` | string | - |
| dataIndex | display field of the data record, could be set like `a.b.c` | string | - |
| render | renderer of table cell, has three params: text, record and index of this row. The render value should be a ReactNode, or a object for [colSpan/rowSpan config](#components-table-demo-colspan-rowspan) | Function(text, record, index) {} | - |
| render | renderer of table cell, has three params: text, record and index of this row. The render value should be a ReactNode, or an object for [colSpan/rowSpan config](#components-table-demo-colspan-rowspan) | Function(text, record, index) {} | - |
| filters | filter menu config | object[] | - |
| filters | filter menu config | object[] | - |
| onFilter | callback that is called when when click confirm filter button | Function | - |
| onFilter | callback that is called when when confirm filter button is clicked | Function | - |
| sorter | sort function for local sort, see [Array.sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)'s compareFunction. If you need sort buttons only, set it `true` | Function\|boolean | - |
| sorter | sort function for local sort, see [Array.sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)'s compareFunction. If you need sort buttons only, set to`true` | Function\|boolean | - |
| colSpan | span of this column's title | number | |
| colSpan | span of this column's title | number | |
| width | width of this column | string\|number | - |
| width | width of this column | string\|number | - |
| className | className of this column | string | - |
| className | className of this column | string | - |
| fixed | set column to be fixed: `true`(same as left) `'left'``'right'` | boolean\|string | false |
| fixed | set column to be fixed: `true`(same as left) `'left'``'right'` | boolean\|string | false |
| text | display text is this selection | string\|React.ReactNode | - |
| text | display text of this selection | string\|React.ReactNode | - |
| onSelect | callback when click this selection | Function(changeableRowKeys) | - |
| onSelect | callback when this selection is clicked | Function(changeableRowKeys) | - |
## Using in TypeScript
## Using in TypeScript
@ -170,9 +170,9 @@ class NameColumn extends Table.Column<IUser> {}
## Note
## Note
According to [React documentation](https://facebook.github.io/react/docs/lists-and-keys.html#keys), every child in array should be assigned a unique key. The value inside `dataSource` and `columns` should follow this in Table, and `dataSource[i].key` would be treated as key value default for `dataSource`.
According to [React documentation](https://facebook.github.io/react/docs/lists-and-keys.html#keys), every child in array should be assigned a unique key. The values inside `dataSource` and `columns` should follow this in Table, and `dataSource[i].key` would be treated as key value default for `dataSource`.
If `dataSource[i].key` is not existed, then you should specify the primary key of dataSource value via `rowKey`. If not, warnings like above will show in browser console.
If `dataSource[i].key` is not provided, then you should specify the primary key of dataSource value via `rowKey`. If not, warnings like above will show in browser console.