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.
23 lines (22 loc) • 628 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[];
rowIndex: number;
rowKey: string;
rowType: RowType;
data: any;
constructor(ctx: Context, rowIndex: number, x: number | undefined, y: number | undefined, width: number | undefined, height: number | undefined, data: any, rowType?: RowType);
update(): void;
drawCenter(): void;
drawFixed(): void;
draw(): void;
}