UNPKG

ngxsmk-datatable

Version:

A powerful, feature-rich Angular datatable component with virtual scrolling, built for Angular 17+

43 lines (42 loc) 1.14 kB
import { ExportConfig } from '../interfaces/export.interface'; import { NgxsmkRow } from '../interfaces/row.interface'; import { NgxsmkColumn } from '../interfaces/column.interface'; import * as i0 from "@angular/core"; export declare class ExportService { constructor(); /** * Export data in the specified format */ export(rows: NgxsmkRow[], columns: NgxsmkColumn[], config: ExportConfig): void; /** * Export as CSV */ private exportAsCSV; /** * Export as Excel (CSV with Excel-specific formatting) */ private exportAsExcel; /** * Export as JSON */ private exportAsJSON; /** * Export as PDF (basic implementation) * For full PDF support, consider using a library like jsPDF */ private exportAsPDF; /** * Escape CSV value */ private escapeCSVValue; /** * Download file */ private downloadFile; /** * Get nested property value */ private getNestedValue; static ɵfac: i0.ɵɵFactoryDeclaration<ExportService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ExportService>; }