Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / useAlignedGrids

Function: useAlignedGrids()

useAlignedGrids<TRow>(controller, group, scrollerRef): AlignedGridsApi

Defined in: datagrid-react/src/hooks/useAlignedGrids.ts:60

Keep this grid's column layout and horizontal scroll in step with the others in group.

A group of one is the ordinary case and costs a Map lookup: the hook registers, finds no peers, and every propagation returns immediately.

Type Parameters

TRow

TRow = GridRowData

Parameters

controller

DataGridController<TRow>

group

string | undefined

scrollerRef

RefObject<HTMLElement | null>

Returns

AlignedGridsApi