UNPKG

ngx-smart-spreadsheet

Version:

Lightweight spreadsheet module for Angular

18 lines (17 loc) 556 B
import Cell from "./cell"; declare class Table { id: string; head: string[]; body: Cell[][]; constructor(id: string, head: string[], body: Cell[][]); static empty(rows: number, cols: number): Table; static load(data: string[][]): Table; findCell(row: number, col: number): Cell | null; insertColumn(colIndex: number): void; deleteColumn(colIndex: number): void; insertRow(rowIndex: number): void; deleteRow(rowIndex: number): void; get rowCount(): number; get colCount(): number; } export default Table;