Skip to main content
Version: 2.0.0-alpha

Interface: VirtualTableProps<T, E>

See

Table

Type parameters

NameType
Textends Record<string, any>
Eextends any

Properties

cellRenderer

cellRenderer: (params: CellRendererParams<T, E>) => ReactNode

Type declaration

▸ (params): ReactNode

Custom cell renderer The renderer receives props { cellData, columns, column, columnIndex, rowData, rowIndex, container, isScrolling }

Parameters
NameType
paramsCellRendererParams<T, E>
Returns

ReactNode

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:27


checkFilterCombination

Optional checkFilterCombination: (filterValues: Partial<Record<Extract<keyof T, string>, [WhereFilterOp, any]>>, sortBy?: [string, "desc" | "asc"]) => boolean

Type declaration

▸ (filterValues, sortBy?): boolean

Set this callback if you want to support some combinations of filter combinations only.

Parameters
NameType
filterValuesPartial<Record<Extract<keyof T, string>, [WhereFilterOp, any]>>
sortBy?[string, "desc" | "asc"]
Returns

boolean

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:40


columns

columns: TableColumn<T, E>[]

Properties displayed in this collection. If this property is not set every property is displayed, you can filter

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:21


data

Optional data: T[]

Array of arbitrary data

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:15


emptyMessage

Optional emptyMessage: string

Message displayed when there is no data

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:100


error

Optional error: Error

If there is an error loading data you can pass it here, so it gets displayed instead of the content

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:95


filter

Optional filter: Partial<Record<any, [WhereFilterOp, any]>>

In case this table should have some filters set by default

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:72


hoverRow

Optional hoverRow: boolean

Should apply a different style when hovering

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:110


loading

Optional loading: boolean

Is the table in a loading state

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:105


onColumnResize

Optional onColumnResize: (params: OnTableColumnResizeParams<T, E>) => void

Type declaration

▸ (params): void

Callback when a column is resized

Parameters
NameType
paramsOnTableColumnResizeParams<T, E>
Returns

void

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:62


onEndReached

Optional onEndReached: () => void

Type declaration

▸ (): void

A callback function when scrolling the table to near the end

Returns

void

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:46


onFilterUpdate

Optional onFilterUpdate: (filter?: Partial<Record<any, [WhereFilterOp, any]>>) => void

Type declaration

▸ (filter?): void

Callback used when filters are updated

Parameters
NameType
filter?Partial<Record<any, [WhereFilterOp, any]>>
Returns

void

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:78


onResetPagination

Optional onResetPagination: () => void

Type declaration

▸ (): void

When the pagination should be reset. E.g. the filters or sorting has been reset.

Returns

void

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:52


onRowClick

Optional onRowClick: (props: OnRowClickParams<T>) => void

Type declaration

▸ (props): void

Callback when a row is clicked

Parameters
NameType
propsOnRowClickParams<T>
Returns

void

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:57


onSortByUpdate

Optional onSortByUpdate: (sortBy?: [string, "desc" | "asc"]) => void

Type declaration

▸ (sortBy?): void

Callback used when sorting is updated

Parameters
NameType
sortBy?[string, "desc" | "asc"]
Returns

void

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:89


paginationEnabled

Optional paginationEnabled: boolean

If enabled, content is loaded in batch

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:32


size

Optional size: TableSize

Size of the table

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:67


sortBy

Optional sortBy: [string, "desc" | "asc"]

Default sort applied to this collection

Defined in

lib/src/core/components/Table/VirtualTableProps.tsx:83