Infinite Table Type Definitions

These are the public type definitions for InfiniteTable and related components, that you can import with named imports from the @infinite-table/infinite-react package.

Importing the type for rowInfo
import type { InfiniteTableRowInfo } from '@infinite-table/infinite-react';

Naming convention ⚠️

The types of all properties in the InfiniteTable and DataSource components respect the following naming convention: <ComponentName>Prop<PropName>

So, for example, the type for groupBy is DataSourcePropGroupBy

DataSourceDataParams <T>

The type for the object passed into the data function prop of the DataSource component.

DataSourceFilterValueItem

The type for the items in the filterValue array prop of the DataSource component.

DataSourceGroupBy <T>

The type for the objects in the groupBy array. See related DataSourcePropGroupBy

DataSourcePivotBy <T>

Describes a pivot value for the grid.

DataSourcePropGroupBy <T>

The type of the groupBy prop. Basically this type is an array of DataSourceGroupBy.

DataSourcePropSortInfo <T>

The type of the sortInfo DataSource prop.

DataSourceSingleSortInfo <T>

Represents information on a specific sort. Contains info about the field to sort by, the sort direction, and the sort type.

InfiniteColumnEditorContextType <T>

The type for the object you get back when you call useInfiniteColumnEditor

InfiniteTableColumnCellContextType <T>

The type for the parameter of columns.renderValue (and related rendering functions) and also for the object you get back when you call useInfiniteColumnCell

InfiniteTableColumnHeaderParam <T>

Represents runtime information passed to rendering and styling functions called when rendering the column headers

InfiniteTableColumnStylingFnParams <T>

Represents runtime information passed to many styling functions called when rendering the column cells

InfiniteTableComputedColumn <T>

This represents an enhanced column definition for a column. A computed column is basically a column with more information computed at runtime, based on everything Infinite Table can aggregate about it.

InfiniteTableRowInfo <T>

Type for rowInfo object representing rows in the table. See Using RowInfo for more details.

InfiniteTableStylingFnParams <T>

Represents runtime information passed to many styling functions called when rendering rows/cells

RowDetailState

Represents the collapse/expand state of row details - when master-detail is configured. Also see rowDetailRenderer for the most important property in the master-detail configuration.