fixed-react-data-grid-custom
Version:
Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like
32 lines (31 loc) • 1 kB
TypeScript
import React from 'react';
import { CellMetaData, RowRendererProps, CalculatedColumn } from './common/types';
import EventBus from './masks/EventBus';
interface Props<R> {
height: number;
columns: CalculatedColumn<R>[];
row: unknown;
cellRenderer?(): void;
cellMetaData: CellMetaData<R>;
isSelected?: boolean;
idx: number;
extraClasses?: string;
forceUpdate?: boolean;
subRowDetails?: unknown;
isRowHovered?: boolean;
colVisibleStartIdx: number;
colVisibleEndIdx: number;
colOverscanStartIdx: number;
colOverscanEndIdx: number;
isScrolling: boolean;
columnGroupDisplayName: string;
columnGroupName: string;
isExpanded: boolean;
treeDepth?: number;
name: string;
renderer?: React.ComponentType;
eventBus: EventBus;
renderBaseRow(p: RowRendererProps<R>): React.ReactElement;
}
declare const RowGroup: React.ForwardRefExoticComponent<Props<any> & React.RefAttributes<HTMLDivElement>>;
export default RowGroup;