frontend/.pnpm-store/v3/files/67/2088fa7f05c96d032cb66062205f62f4ea108f38844ce90918bc8e3fd1c2f81eed73a8946f4e482fa0a83e43ce4f57f387ebcbd73cc3787f7120c97ae9c83d

31 lines
842 B
Plaintext

import Base from './base';
import Row from './row';
import { OneDArray, TCell, TwoDArray } from './types';
declare class Tabular extends Base {
private _rows;
private _length;
constructor(rows?: Row[] | Row);
get rows(): Row[];
set rows(rows: Row[]);
get length(): number;
set length(len: number);
toArray(): TCell[][];
/**
* Creates a new Tabular from an array of Row(s)
* This method generates a new ID for the Tabular and all nested elements
*
* @param rows
* @returns Tabular
*/
static fromRows(rows: Row[]): Tabular;
/**
* Creates a new Tabular from a 2D array
* This method generates a new ID for the Tabular and all nested elements
*
* @param data
* @returns Tabular
*/
static fromArray<T extends TCell>(data: OneDArray<T> | TwoDArray<T>): Tabular;
}
export default Tabular;