Type Alias: SelectableTableProps<M>
SelectableTableProps<
M
>:object
Type Parameters​
• M extends Record
<string
, any
>
Type declaration​
AddColumnComponent?​
optional
AddColumnComponent:React.ComponentType
cellRenderer​
cellRenderer:
React.ComponentType
<CellRendererParams
<Entity
<M
>>>
columns​
columns:
VirtualTableColumn
[]
emptyComponent?​
optional
emptyComponent:React.ReactNode
endAdornment?​
optional
endAdornment:React.ReactNode
filterable?​
optional
filterable:boolean
forceFilter?​
optional
forceFilter:FilterValues
<keyofM
extendsstring
? keyofM
:never
>
highlightedRow()?​
optional
highlightedRow: (data
) =>boolean
Parameters​
• data: Entity
<M
>
Returns​
boolean
hoverRow?​
optional
hoverRow:boolean
Should apply a different style to a row when hovering
inlineEditing?​
optional
inlineEditing:boolean
onValueChange?​
optional
onValueChange:OnCellValueChange
<any
,M
>
Callback when a cell value changes.
size?​
optional
size:CollectionSize
sortable?​
optional
sortable:boolean
tableController​
tableController:
EntityTableController
<M
>
Controller holding the logic for the table useDataSourceEntityCollectionTableController EntityTableController
tableRowActionsBuilder()?​
optional
tableRowActionsBuilder: (params
) =>React.ReactNode
Builder for creating the buttons in each row
Parameters​
• params
• params.entity: Entity
<M
>
• params.frozen?: boolean
• params.size: CollectionSize
• params.width: number
Returns​
React.ReactNode
onColumnResize()?​
Callback when a column is resized
Parameters​
• params: OnColumnResizeParams
Returns​
void
onEntityClick()?​
Callback when anywhere on the table is clicked
Parameters​
• entity: Entity
<M
>
Returns​
void
Defined in​
packages/firecms_core/src/components/SelectableTable/SelectableTable.tsx:23