22 lines
530 B
Plaintext
22 lines
530 B
Plaintext
import Cell from './cell';
|
|
import Base from './base';
|
|
import { TCell } from './types';
|
|
declare class Row extends Base {
|
|
private _cells;
|
|
constructor(cells?: Cell[]);
|
|
cell(index: number): Cell;
|
|
get cells(): Cell[];
|
|
set cells(cells: Cell[]);
|
|
toArray(): TCell[];
|
|
/**
|
|
* Creates a new Row from an array of Cell(s)
|
|
* This method generates a new ID for the Row and all nested elements
|
|
*
|
|
* @param cells
|
|
* @returns Row
|
|
*/
|
|
static fromCells(cells: Cell[]): Row;
|
|
get length(): number;
|
|
}
|
|
export default Row;
|