e-virt-table
Version:
A powerful data table based on canvas. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.
27 lines (26 loc) • 770 B
TypeScript
import Cell from './Cell';
import Context from './Context';
import type { RowType } from './types';
export default class Row {
private ctx;
x: number;
y: number;
width: number;
height: number;
cells: Cell[];
fixedCells: Cell[];
noFixedCells: Cell[];
calculatedHeightCells: Cell[];
rowIndex: number;
rowKey: string;
rowType: RowType;
data: any;
calculatedHeight: number;
constructor(ctx: Context, rowIndex: number, x: number | undefined, y: number | undefined, width: number | undefined, height: number | undefined, data: any, rowType?: RowType);
update(): void;
updateCalculatedHeight(): void;
drawCenter(): void;
drawFixed(): void;
drawContainer(): void;
drawFixedContainer(): void;
}