SelectableTableProps
@firecms/core / SelectableTableProps
Type Alias: SelectableTableProps<M>
Section titled “Type Alias: SelectableTableProps<M>”SelectableTableProps<
M> =object
Defined in: components/SelectableTable/SelectableTable.tsx:22
Type Parameters
Section titled “Type Parameters”M extends Record<string, any>
Properties
Section titled “Properties”AddColumnComponent?
Section titled “AddColumnComponent?”
optionalAddColumnComponent:React.ComponentType
Defined in: components/SelectableTable/SelectableTable.tsx:95
cellRenderer
Section titled “cellRenderer”cellRenderer:
React.ComponentType<CellRendererParams<Entity<M>>>
Defined in: components/SelectableTable/SelectableTable.tsx:31
columns
Section titled “columns”columns:
VirtualTableColumn[]
Defined in: components/SelectableTable/SelectableTable.tsx:29
emptyComponent?
Section titled “emptyComponent?”
optionalemptyComponent:React.ReactNode
Defined in: components/SelectableTable/SelectableTable.tsx:91
endAdornment?
Section titled “endAdornment?”
optionalendAdornment:React.ReactNode
Defined in: components/SelectableTable/SelectableTable.tsx:93
filterable?
Section titled “filterable?”
optionalfilterable:boolean
Defined in: components/SelectableTable/SelectableTable.tsx:67
forceFilter?
Section titled “forceFilter?”
optionalforceFilter:FilterValues<keyofMextendsstring? keyofM:never>
Defined in: components/SelectableTable/SelectableTable.tsx:73
highlightedRow()?
Section titled “highlightedRow()?”
optionalhighlightedRow: (data) =>boolean
Defined in: components/SelectableTable/SelectableTable.tsx:75
Parameters
Section titled “Parameters”Entity<M>
Returns
Section titled “Returns”boolean
hoverRow?
Section titled “hoverRow?”
optionalhoverRow:boolean
Defined in: components/SelectableTable/SelectableTable.tsx:58
Should apply a different style to a row when hovering
initialScroll?
Section titled “initialScroll?”
optionalinitialScroll:number
Defined in: components/SelectableTable/SelectableTable.tsx:79
inlineEditing?
Section titled “inlineEditing?”
optionalinlineEditing:boolean
Defined in: components/SelectableTable/SelectableTable.tsx:71
onScroll()?
Section titled “onScroll()?”
optionalonScroll: (props) =>void
Defined in: components/SelectableTable/SelectableTable.tsx:85
Callback when the table is scrolled
Parameters
Section titled “Parameters”scrollDirection
Section titled “scrollDirection”"forward" | "backward"
scrollOffset
Section titled “scrollOffset”number
scrollUpdateWasRequested
Section titled “scrollUpdateWasRequested”boolean
Returns
Section titled “Returns”void
onValueChange?
Section titled “onValueChange?”
optionalonValueChange:OnCellValueChange<any,M>
Defined in: components/SelectableTable/SelectableTable.tsx:27
Callback when a cell value changes.
optionalsize:CollectionSize
Defined in: components/SelectableTable/SelectableTable.tsx:77
sortable?
Section titled “sortable?”
optionalsortable:boolean
Defined in: components/SelectableTable/SelectableTable.tsx:69
tableController
Section titled “tableController”tableController:
EntityTableController<M>
Defined in: components/SelectableTable/SelectableTable.tsx:65
Controller holding the logic for the table useDataSourceTableController EntityTableController
tableRowActionsBuilder()?
Section titled “tableRowActionsBuilder()?”
optionaltableRowActionsBuilder: (params) =>React.ReactNode
Defined in: components/SelectableTable/SelectableTable.tsx:38
Builder for creating the buttons in each row
Parameters
Section titled “Parameters”params
Section titled “params”entity
Section titled “entity”Entity<M>
frozen?
Section titled “frozen?”boolean
number
Returns
Section titled “Returns”React.ReactNode
Methods
Section titled “Methods”onColumnResize()?
Section titled “onColumnResize()?”
optionalonColumnResize(params):void
Defined in: components/SelectableTable/SelectableTable.tsx:53
Callback when a column is resized
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”void
onEntityClick()?
Section titled “onEntityClick()?”
optionalonEntityClick(entity):void
Defined in: components/SelectableTable/SelectableTable.tsx:48
Callback when anywhere on the table is clicked
Parameters
Section titled “Parameters”entity
Section titled “entity”Entity<M>
Returns
Section titled “Returns”void