Files
madbase/control-plane-ui/node_modules/@mui/x-data-grid/components/cell/GridCell.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

43 lines
1.8 KiB
TypeScript

import * as React from 'react';
import { GridRowId, GridCellMode, GridEditCellProps } from '../../models';
import { GridColDef, GridAlignment } from '../../models/colDef/gridColDef';
type GridCellV7Props = {
align: GridAlignment;
className?: string;
colIndex: number;
column: GridColDef;
rowId: GridRowId;
height: number | 'auto';
showRightBorder?: boolean;
width: number;
colSpan?: number;
disableDragEvents?: boolean;
isNotVisible?: boolean;
editCellState: GridEditCellProps<any> | null;
onClick?: React.MouseEventHandler<HTMLDivElement>;
onDoubleClick?: React.MouseEventHandler<HTMLDivElement>;
onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
onMouseUp?: React.MouseEventHandler<HTMLDivElement>;
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
onDragEnter?: React.DragEventHandler<HTMLDivElement>;
onDragOver?: React.DragEventHandler<HTMLDivElement>;
[x: string]: any;
};
type GridCellWrapperProps = GridCellV7Props;
export type GridCellProps<V = any, F = V> = GridCellWrapperProps & {
field: string;
formattedValue?: F;
hasFocus?: boolean;
isEditable?: boolean;
isSelected?: boolean;
value?: V;
cellMode?: GridCellMode;
children: React.ReactNode;
tabIndex: 0 | -1;
};
declare const GridCell: React.ForwardRefExoticComponent<Omit<GridCellProps<any, any>, "ref"> & React.RefAttributes<HTMLDivElement>>;
declare const MemoizedCellWrapper: React.ForwardRefExoticComponent<Omit<GridCellV7Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
export { MemoizedCellWrapper as GridCellWrapper, GridCell };
declare const MemoizedGridCellV7: React.ForwardRefExoticComponent<Omit<GridCellV7Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
export { MemoizedGridCellV7 as GridCellV7 };