UNPKG

trclib

Version:

Client and utility wrappers for TRC rest APIs

36 lines (35 loc) 1.57 kB
import * as trc from './trc2'; import * as trcfx from './trcfx'; export declare function Loading(elementId: string): void; export declare class DownloadHelper { static appendDownloadCsvButton: (parent: Element, getData: () => trc.ISheetContents) => void; } export declare class RenderSheet { private _data; private _numRows; private _elementId; constructor(elementId: string, data: trc.ISheetContents); getCountRows(): number; private _columnInfo; setColumnInfo(columnInfo: trc.IColumnInfo[]): void; private _onlyColumns; setColumns(columnNames: string[]): void; private _columnRenderer; setHtml(columnName: string, fpRenderer: (iRow: number) => string): void; private _tableHtml; setTableHtmlTag(tableHtml: string): void; private getRenderer(columnName); protected getRenderer2(columnName: string, columnInfo: trc.IColumnInfo, value: string, recId: string, iRow: number): any; private getColumnInfo(columnName); render(): void; } export declare class SheetControl extends RenderSheet { private _sheetRef; constructor(elementId: string, sheetRef: trcfx.SheetEx); private setColorClass(element, cssColorClass); private getCellId(recId, columnName); private getElement(recId, columnName); onCellChange(recId: string, columnName: string, newValue: string): void; private static onOtherDeltas(pthis, ver, delta); protected getRenderer2(columnName: string, columnInfo: trc.IColumnInfo, value: string, recId: string, iRow: number): any; }