Files
madbase/control-plane-ui/node_modules/@mui/x-data-grid/models/api/gridColumnSpanning.d.ts
Vlad Durnea cffdf8af86
Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
wip:milestone 0 fixes
2026-03-15 12:35:42 +02:00

33 lines
1.3 KiB
TypeScript

import { GridStateColDef } from '../colDef/gridColDef';
import { GridColumnIndex, GridCellColSpanInfo } from '../gridColumnSpanning';
import { GridRowId } from '../gridRows';
/**
* The Column Spanning API interface that is available in the grid `apiRef`.
*/
export interface GridColumnSpanningApi {
/**
* Returns cell colSpan info.
* @param {GridRowId} rowId The row id
* @param {number} columnIndex The column index (0-based)
* @returns {GridCellColSpanInfo|undefined} Cell colSpan info
* @ignore - do not document.
*/
unstable_getCellColSpanInfo: (rowId: GridRowId, columnIndex: GridColumnIndex) => GridCellColSpanInfo | undefined;
}
export interface GridColumnSpanningPrivateApi {
/**
* Calculate column spanning for each cell in the row
* @param {Object} options The options to apply on the calculation.
* @param {GridRowId} options.rowId The row id
* @param {number} options.minFirstColumn First visible column index
* @param {number} options.maxLastColumn Last visible column index
* @param {GridStateColDef[]} options.columns List of columns to calculate colSpan for
*/
calculateColSpan: (options: {
rowId: GridRowId;
minFirstColumn: number;
maxLastColumn: number;
columns: GridStateColDef[];
}) => void;
}