The master/detail API interface that is available in the grid [[apiRef]].

interface GridDetailPanelApi {
    getExpandedDetailPanels: (() => GridRowId[]);
    setExpandedDetailPanels: ((ids: GridRowId[]) => void);
    toggleDetailPanel: ((id: GridRowId) => void);
}

Hierarchy (view full)

Properties

getExpandedDetailPanels: (() => GridRowId[])

Returns the rows whose detail panel is open.

Type declaration

setExpandedDetailPanels: ((ids: GridRowId[]) => void)

Changes which rows to expand the detail panel.

Type declaration

    • (ids): void
    • Parameters

      • ids: GridRowId[]

        The ids of the rows to open the detail panel.

      Returns void

toggleDetailPanel: ((id: GridRowId) => void)

Expands or collapses the detail panel of a row.

Type declaration

    • (id): void
    • Parameters

      • id: GridRowId

        The row id to toggle the panel.

      Returns void