The density API interface that is available in the grid apiRef.

interface GridDensityApi {
    setDensity: ((density: GridDensity) => void);
}

Hierarchy (view full)

Properties

Properties

setDensity: ((density: GridDensity) => void)

Sets the density of the grid.

Type declaration

    • (density): void
    • Parameters

      • density: GridDensity

        Can be: "compact", "standard", "comfortable".

      Returns void