@biorate/react-virtual-table
Version:
React virtual table
41 lines (40 loc) • 915 B
TypeScript
export declare namespace IReactVirtualTable {
type Column = {
field: string;
title?: string;
width?: number;
fixed?: 'left' | 'right';
};
type Columns = Column[];
type Row = Record<string, any>;
type Rows = Row[];
type PaginationProps = {
count?: number;
};
interface Bounds {
width: number;
height: number;
}
interface Pagination {
}
interface Cols {
}
interface Store {
bounds: Bounds;
rawRows: Rows;
rows: Rows;
cols: Cols;
pagination: Pagination;
width: number;
height: number;
colWidth: number;
rowHeight: number;
scrollLeft: number;
scrollTop: number;
border: number;
scrollBarWidth: number;
header: boolean;
footer: boolean;
getColWidth(cols: Column): number;
}
}