UNPKG

data-table-material

Version:

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

17 lines (16 loc) 697 B
import { IDataTable } from '../types'; export interface IExportData<T extends IDataTable.GenericRecord> { rows: T[]; columns: IDataTable.Column<T>[]; filename?: string; title?: string; getLocalizedText?: (text: string, params?: IDataTable.GenericRecord) => string; } 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;