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
Collapses all row details.
collapseRowDetail
Collapses the detail for the row with the specified primary key.
expandAllDetails
Expands all row details.
expandRowDetail
Expands the detail for the row with the specified primary key.
isRowDetailCollapsed
Checks if the row detail is collapsed for the row with the specified primary key.
isRowDetailExpanded
Checks if the row detail is expanded for the row with the specified primary key.
toggleRowDetail
Toggles the expand/collapse state of the row detail, for the row with the specified primary key.