tableLayout | 'auto' | 'fixed' | 'auto', 'fixed' for any columns is fixed or ellipsis or header is fixed | https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout |
prefixCls | String | rc-table | |
className | String | | additional className |
id | String | | identifier of the container div |
useFixedHeader | Boolean | false | whether use separator table for header. better set width for columns |
scroll | Object | {x: false, y: false} | 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 |
expandIconAsCell | Boolean | false | whether render expandIcon as a cell |
expandIconColumnIndex | Number | 0 | The index of expandIcon which column will be inserted when expandIconAsCell is false |
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.
|
rowClassName | string or Function(record, index, indent):string | | get row's className |
rowRef | Function(record, index, indent):string | | get row's ref key |
defaultExpandedRowKeys | String[] | [] | initial expanded rows keys |
expandedRowKeys | String[] | | current expanded rows keys |
defaultExpandAllRows | Boolean | false | Expand All Rows initially |
onExpandedRowsChange | Function(expandedRows) | save the expanded rows in the internal state | function to call when the expanded rows change |
onExpand | Function(expanded, record) | | function to call when click expand icon |
expandedRowClassName | Function(recode, index, indent):string | | get expanded row's className |
expandedRowRender | Function(recode, index, indent, expanded):ReactNode | | Content render to expanded row |
data | Object[] | | data record array to be rendered |
indentSize | Number | 15 | indentSize for every level of data.i.children, better using with column.width specified |
onRowClick[deprecated] | Function(record, index) | | handle rowClick action, index means the index of current row among fatherElement[childrenColumnName] |
onRowDoubleClick[deprecated] | Function(record, index) | | handle rowDoubleClick action, index means the index of current row among fatherElement[childrenColumnName] |
onRowMouseEnter[deprecated] | Function(record, index) | | handle onRowMouseEnter action, index means the index of current row among fatherElement[childrenColumnName] |
onRowMouseLeave[deprecated] | Function(record, index) | | handle onRowMouseLeave action, index means the index of current row among fatherElement[childrenColumnName] |
onRow | Function(record, index) | | Set custom props per each row. |
onHeaderRow | Function(record, index) | | Set custom props per each header row. |
showHeader | Boolean | true | whether table head is shown |
title | Function(currentData) | | table title render function |
footer | Function(currentData) | | table footer render function |
getBodyWrapper[deprecated] | Function(body) | | get wrapper of tbody, [demo](http://react-component.github.io/table/examples/animation.html) |
emptyText | React.Node or Function | `No Data` | Display text when data is empty |
columns | Object[] | |
The columns config of table, see table below
|
components | Object | |
Override table elements, see [#171](https://github.com/react-component/table/pull/171) for more details
|