,
document.getElementById('__react-content')
);
```
## API
### property
name
type
default
description
prefixCls
String
rc-table
className
String
additional className
colSpan
Number
thead colSpan of this column
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, `y` can be a number that indicated the 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
Function(recode,index):string
record.key
default use record.key as rowKey
rowClassName
Function(recode,index):string
get row's className
defaultExpandedRowKeys
String[]
[]
initial expanded rows keys
expandedRowKeys
String[]
current expanded rows keys
onExpandedRowsChange
Function(expandedRows)
save the expanded rows in the internal state
function to call when the expanded rows change
expandedRowClassName
Function(recode,index):string
get expanded row's className
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
Function(record, index)
handle rowClick action, index means the index of current row among fatherElement[childrenColumnName]
columnsPageSize
Number
5
pageSize of columns. (Deprecated, use fixed columns)
columnsPageRange
Array
columns index range need paging, like [2,10]. (Deprecated, use column.fixed)
showHeader
Boolean
true
whether table head is shown
footer
Function(currentData)
table footer render function
columns
Object[]
The columns config of table. contains
name
type
default
description
key
String
key of this column
className
String
className of this column
title
React Node
title of this column
dataIndex
String
display field of the data record
width
String|Number
width of the specific proportion calculation according to the width of the columns
fixed
String|Boolean
this column will be fixed when table scroll horizontally: true or 'left' or 'right'
render
Function(value, row, index)
The render function of cell, has three params: the text of this cell, the record of this row, the index of this row, it's return an object:{children: value, props:{colSpan: 1, rowSpan:1}}==>'children' is the text of this cell, props is some setting of this cell, eg: 'colspan' set td colspan, 'rowspan' set td rowspan
## Test Case
http://localhost:8000/tests/runner.html?coverage
## Coverage
http://localhost:8000/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8000/tests/runner.html?coverage
## License
rc-table is released under the MIT license.