Kvaser CanKing GUI Extensions SDK v7.4.0
Kvaser CanKing GUI Extensions SDK / controls / TableControlProps
Interface: TableControlProps<T>
Properties of the TableControl React component.
Type Parameters
T
T
Properties
columns
columns:
TableColumn<T>[]
Column definitions.
data
data:
T[]
Data rows to be displayed.
dataKey()
dataKey: (
row) =>Key
Callback to get a unique data key for the specified row.
Parameters
row
T
Returns
Key
hover?
optionalhover:boolean
If true, the table row will shade on hover, defaults to false.
label?
optionallabel:string
An optional table label.
labelVariant?
optionallabelVariant:Variant
An optional Typography variant to be used for the label.
maxHeight?
optionalmaxHeight:string|number
Optional max height.
onClickRow()?
optionalonClickRow: (row) =>void
Callback to inform that a data row has been clicked.
Parameters
row
T
Returns
void
onRemoveRow()?
optionalonRemoveRow: (row) =>void
Callback to be run when clicking on the remove button
Parameters
row
T
Returns
void
selectedKey?
optionalselectedKey:Key
The key of the currently selected data row.
size?
optionalsize:"small"|"medium"
Table size, defaults to ‘medium’.
stickyHeader?
optionalstickyHeader:boolean
Set the header sticky, defaults to false.