UNPKG

963 BTypeScriptView Raw
1import { Client } from '../client';
2import { Cell } from './cell';
3import { EventCallback, SortFn, FilterFn } from '../types';
4import { Subscription } from 'rxjs';
5export declare class Row {
6 private _client;
7 workspaceId: string;
8 coreId: string;
9 tableId: string;
10 id: string;
11 order: number;
12 rowData: Map<string, Cell>;
13 constructor(client: Client | undefined, workspaceId: string, coreId: string, tableId: string, id: string, rowData?: Map<string, Cell>, order?: number);
14 onCellUpdated(cb: EventCallback): Subscription;
15 on(cb: EventCallback): Subscription;
16 cell(columnId: string): Cell | undefined;
17}
18export declare class RowArray {
19 private _client;
20 rows: Row[];
21 constructor(client: Client, rows: Row[]);
22 select(maxSize?: number | FilterFn, filter?: FilterFn): RowArray;
23 sort(sortFn: SortFn): RowArray;
24 onCellUpdated(cb: EventCallback): Subscription[];
25 on(cb: EventCallback): Subscription[];
26}