Interface: TableColumn<T>
see
Table
Type parameters​
Name | Type |
---|---|
T | extends any |
Indexable​
â–ª [key: string
]: any
Properties​
align​
• Optional
align: "left"
| "center"
| "right"
Alignment of the column cell
Defined in​
lib/src/core/components/Table/TableProps.tsx:174
filter​
• Optional
filter: TableColumnFilter
Defined in​
lib/src/core/components/Table/TableProps.tsx:168
headerAlign​
• Optional
headerAlign: "left"
| "center"
| "right"
How is the
Defined in​
lib/src/core/components/Table/TableProps.tsx:158
key​
• key: string
Data key for the cell value, could be "a.b.c"
Defined in​
lib/src/core/components/Table/TableProps.tsx:128
sortable​
• Optional
sortable: boolean
Whether the column is sortable, defaults to false
Defined in​
lib/src/core/components/Table/TableProps.tsx:179
title​
• Optional
title: string
Label displayed in the header
Defined in​
lib/src/core/components/Table/TableProps.tsx:153
width​
• width: number
The width of the column, gutter width is not included
Defined in​
lib/src/core/components/Table/TableProps.tsx:133
Methods​
cellRenderer​
â–¸ cellRenderer(params
): ReactNode
Custom column cell renderer
The renderer receives props { cellData, columns, column, columnIndex, rowData, rowIndex, container, isScrolling }
Parameters​
Name | Type |
---|---|
params | Object |
params.cellData | any |
params.column | TableColumn <T > |
params.columnIndex | number |
params.columns | TableColumn <T >[] |
params.container | any |
params.isScrolling? | boolean |
params.rowData | T |
params.rowIndex | number |
Returns​
ReactNode
Defined in​
lib/src/core/components/Table/TableProps.tsx:139
icon​
â–¸ Optional
icon(hoverOrOpen
): ReactNode
Ico displayed in the header
Parameters​
Name | Type |
---|---|
hoverOrOpen | boolean |
Returns​
ReactNode