UNPKG

@mindfiredigital/pivothead

Version:

PivotHead is a powerful and flexible library for creating interactive pivot tables in JavaScript applications. It provides a core engine for data manipulation and, in the future, will be compatible with wrappers for React, Vue, Svelte, and Angular, making

43 lines 2.18 kB
import { PivotTableState } from '../types/interfaces'; /** * Service class for handling export operations for the PivotEngine */ export declare class PivotExportService { /** * Converts the pivot table data to HTML * @param {PivotTableState<T>} state - The current state of the pivot table * @returns {string} HTML string representation of the pivot table */ static convertToHtml<T extends Record<string, any>>(state: PivotTableState<T>): string; /** * Exports the pivot table data to HTML and downloads the file * @param {PivotTableState<T>} state - The current state of the pivot table * @param {string} fileName - The name of the downloaded file (without extension) */ static exportToHTML<T extends Record<string, any>>(state: PivotTableState<T>, fileName?: string): void; /** * Exports the pivot table data to PDF and downloads the file * @param {PivotTableState<T>} state - The current state of the pivot table * @param {string} fileName - The name of the downloaded file (without extension) */ static exportToPDF<T extends Record<string, any>>(state: PivotTableState<T>, fileName?: string): void; /** * Exports the pivot table data to Excel and downloads the file * @param {PivotTableState<T>} state - The current state of the pivot table * @param {string} fileName - The name of the downloaded file (without extension) */ static exportToExcel<T extends Record<string, any>>(state: PivotTableState<T>, fileName?: string): void; /** * Generates an Excel file from the pivot table data * @param {PivotTableState<T>} state - The current state of the pivot table * @param {string} fileName - The name of the downloaded file (without extension) */ private static generateExcel; /** * Opens a print dialog with formatted pivot table content * @param {PivotTableState<T>} state - The current state of the pivot table * @param {string} title - Optional title for the printed page */ static openPrintDialog<T extends Record<string, any>>(state: PivotTableState<T>): void; } //# sourceMappingURL=exportService.d.ts.map