C2 Table
Edit page
ChangelogGetting startedProps<Table /><Column /><ColumnGroup />Readme

Props

<Table />

id
String
required
rowId
string │ Function
required
data
Array
required
defaultOrderColumn
String
defaultOrderDir
'asc' │ 'desc'
sortEnabled
Bool
true
children
Custom
style
Object
className
Custom
rowClassName
Custom
expandClassName
Custom
clickableClass
String
page
Number
rowsPerPage
Number
onExpand
Func
expanded
Array
expandedIcon
Any
collapsedIcon
Any
onEmpty
Node
sortDescIcon
Any
sortAscIcon
Any
onSort
Func
isFullLength
Func
fullLengthCell
Func

<Column />

id
String
required
header
string │ Function
headerClassName
Custom
cellClassName
Any
footerClassName
Custom
footer
Func
cell
Custom
orderValue
Custom
sortOnHeaderClick
Bool
true
sort
Func

<ColumnGroup />

id
String
required
children
Array<Custom(Function)>
required
headerClassName
Custom
sortOnHeaderClick
Bool
true
sort
Func