Interface: VirtualTableProps<T>
See​
Table
Type Parameters​
• T extends Record
<string
, any
>
Properties​
AddColumnComponent?​
optional
AddColumnComponent:ComponentType
<object
>
If adding this callback, a button to add a new column is displayed.
Param​
Defined in​
packages/firecms_core/src/components/VirtualTable/VirtualTableProps.tsx:148
cellRenderer​
cellRenderer:
ComponentType
<CellRendererParams
<T
>>
Custom cell renderer
The renderer receives props { cellData, columns, column, columnIndex, rowData, rowIndex, container, isScrolling }
Defined in​
packages/firecms_core/src/components/VirtualTable/VirtualTableProps.tsx:32
checkFilterCombination()?​
optional
checkFilterCombination: (filterValues
,sortBy
?) =>boolean
Set this callback if you want to support some combinations of filter combinations only.
Parameters​
• filterValues: Partial
<Record
<Extract
<keyof T
, string
>, [WhereFilterOp
, any
]>>
• sortBy?: [string
, "asc"
| "desc"
]
Returns​
boolean
Defined in​
packages/firecms_core/src/components/VirtualTable/VirtualTableProps.tsx:40
className?​
optional
className:string
Class name applied to the table
Defined in​
packages/firecms_core/src/components/VirtualTable/VirtualTableProps.tsx:132
columns​
columns:
VirtualTableColumn
<any
>[]
Properties displayed in this collection. If this property is not set every property is displayed, you can filter
Defined in​
packages/firecms_core/src/components/VirtualTable/VirtualTableProps.tsx:26
createFilterField()?​
optional
createFilterField: (props
) =>ReactNode
Callback to create a filter field, displayed in the header as a dropdown
Parameters​
• props: FilterFormFieldProps
<any
>
Returns​
ReactNode
Defined in​
packages/firecms_core/src/components/VirtualTable/VirtualTableProps.tsx:127
data?​
optional
data:T
[]
Array of arbitrary data
Defined in​
packages/firecms_core/src/components/VirtualTable/VirtualTableProps.tsx:20
debug?​
optional
debug:boolean
Debug mode
Defined in​
packages/firecms_core/src/components/VirtualTable/VirtualTableProps.tsx:153
emptyComponent?​
optional
emptyComponent:ReactNode
Message displayed when there is no data
Defined in​
packages/firecms_core/src/components/VirtualTable/VirtualTableProps.tsx:105