Files
ETB/ETB-FrontEnd/node_modules/@mui/x-data-grid/models/api/gridDensityApi.d.ts
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

21 lines
772 B
TypeScript

import * as React from 'react';
import { GridDensity, GridDensityTypes } from '../gridDensity';
export interface GridDensityOption {
icon: React.ReactElement;
label: string;
value: GridDensityTypes;
}
/**
* The density API interface that is available in the grid `apiRef`.
*/
export interface GridDensityApi {
/**
* Sets the density of the grid.
* @param {string} density Can be: `"compact"`, `"standard"`, `"comfortable"`.
* @param {number} headerHeight The new header height.
* @param {number} rowHeight The new row height.
* @param {number} maxDepth The depth of maximal depth column header grouping tree.
*/
setDensity: (density: GridDensity, headerHeight?: number, rowHeight?: number, maxDepth?: number) => void;
}