UNPKG

data-table-material

Version:

A dynamic and customizable table component for React, built with Material UI & TypeScript.

20 lines (19 loc) 802 B
import { IDataTable } from '../types'; export interface IExportData<T extends IDataTable.GenericRecord> { rows: T[]; columns: IDataTable.Column<T>[]; groups?: IDataTable.Group[]; filename?: string; title?: string; getLocalizedText?: (text: string, params?: IDataTable.GenericRecord) => string; paginationData?: IDataTable.Pagination; serialNumber?: boolean; } declare class ExportManager { static exportToCSV<T extends IDataTable.GenericRecord>(config: IExportData<T>, dateTimeStamp?: boolean): void; static exportToPDF<T extends IDataTable.GenericRecord>(config: IExportData<T>, dateTimeStamp?: boolean): Promise<void>; private static getExportData; private static getFormattedRows; private static getCleanTextValue; } export default ExportManager;