climb-onyx-gui
Version:
Onyx Graphical User Interface
35 lines (34 loc) • 1.33 kB
TypeScript
import { ColDef, SortChangedEvent } from '@ag-grid-community/core';
import { CustomCellRendererProps } from '@ag-grid-community/react';
import { ExportHandlerProps } from '../interfaces';
import { InputRow } from '../types';
interface TableProps {
data: InputRow[];
isDataFetching?: boolean;
isCountFetching?: boolean;
cellRenderers?: Map<string, (params: CustomCellRendererProps) => JSX.Element>;
headerNames?: Map<string, string>;
headerTooltips?: Map<string, string>;
headerTooltipPrefix?: string;
tooltipFields?: string[];
fileWriter: (fileName: string, data: string) => Promise<void>;
defaultFileNamePrefix: string;
flexOnly?: string[];
includeOnly?: string[];
order?: string;
footer?: string;
recordPrimaryID?: string;
analysisPrimaryID?: string;
}
interface ServerTableProps extends TableProps {
colDefs: ColDef[];
count: number;
page: number;
pageSize: number;
handleExportData: (exportProps: ExportHandlerProps) => Promise<string>;
handleSortChange: (event: SortChangedEvent) => void;
handlePageChange: (page: number) => void;
}
export default function Table(props: TableProps): import("react/jsx-runtime").JSX.Element;
export declare function ServerTable(props: ServerTableProps): import("react/jsx-runtime").JSX.Element;
export {};