Tree table, the callback function in the expanded node
rowClassName
string , (rowData:object)=>string
Add an optional extra class name to row
rowExpandedHeight
number (100)
Set the height of an expandable area
rowHeight
number(46), (rowData: object) => number
Row height
rowKey
string ('key')
Each row corresponds to the unique key in data
rtl
boolean
Right to left
shouldUpdateScroll
boolean(true)
Whether to update the scroll bar after data update
showHeader
boolean (true)
Display header
sortColumn
string
Sort column name ˝
sortType
enum: 'desc', 'asc'
Sort type (Controlled)
virtualized
boolean
Effectively render large tabular data
width
number
Table width
<Column>
Property
Type (Default)
Description
align
enum: 'left','center','right'
Alignment
colSpan
number
Merges column cells to merge when the dataKey value for the merged column is null or undefined.
fixed
boolean, 'left', 'right'
Fixed column
flexGrow
number
Set the column width automatically adjusts, when set flexGrow cannot set resizable and width property
minWidth
number(200)
When you use flexGrow, you can set a minimum width by minwidth
onResize
(columnWidth?: number, dataKey?: string) => void
Callback after column width change
resizable
boolean
Customizable Resize Column width
sortable
boolean
Sortable
treeCol
boolean
A column of a tree.
verticalAlign
enum: 'top', 'middle', 'bottom'
Vertical alignment
width
number
Column width
sortable is used to define whether the column is sortable, but depending on what key sort needs to set a dataKey in Cell.
The sort here is the service-side sort, so you need to handle the logic in the ' Onsortcolumn ' callback function of <Table>, and the callback function returns sortColumn, sortType values.
<ColumnGroup>
Property
Type (Default)
Description
align
enum: 'left','center','right'
Alignment
fixed
boolean, 'left', 'right'
Fixed column
groupHeaderHeight
number
The height of the header of the merged cell group. The default value is 50% of the table headerHeight