Infinite Table Row Details API

This API can be used when master-detail is configured in the DataGrid.

You can retrieve the row details api by reading it from the api.rowDetailApi property.


const onReady = ({api}: {api:InfiniteTableApi<DATA_TYPE>}) => {
  // do something with it
  api.rowDetailApi.collapseAllDetails()
}

<InfiniteTable<DATA_TYPE>
  columns={[...]}
  onReady={onReady}

See the Infinite Table API page for the main API. See the Infinite Table Row Selection API page for the row selection API. See the Infinite Table Column API page for the column API.

collapseAllDetails

() => void

Collapses all row details.

collapseRowDetail

(rowId: any) => void

Collapses the detail for the row with the specified primary key.

expandAllDetails

() => void

Expands all row details.

expandRowDetail

(rowId: any)=> boolean

Expands the detail for the row with the specified primary key.

isRowDetailCollapsed

(rowId: any)=> boolean

Checks if the row detail is collapsed for the row with the specified primary key.

isRowDetailExpanded

(rowId: any)=> boolean

Checks if the row detail is expanded for the row with the specified primary key.

toggleRowDetail

(rowId: any)=> boolean

Toggles the expand/collapse state of the row detail, for the row with the specified primary key.