UNPKG

@syncfusion/ej2-excel-export

Version:
34 lines (33 loc) 1.03 kB
/** * CsvHelper class * @private */ export declare class CsvHelper { private qualifier; private lineSeparator; private isMicrosoftBrowser; private buffer; private csvStr; private formatter; private globalStyles; private isServerRendered; private separator; constructor(json: any, separator: string, qualifier?: string, newLine?: 'CRLF' | 'LF' | 'CR' | string); private GetLineSeparator; private parseWorksheet; private parseRows; private parseRow; private parseCell; private parseCellValue; /** * Saves the file with specified name and sends the file to client browser * @param {string} fileName- file name to save. * @param {Blob} buffer- the content to write in file */ save(fileName: string): void; /** * Returns a Blob object containing CSV data with optional encoding. * @param {string} [encodingType] - The supported encoding types are "ansi", "unicode" and "utf8". */ saveAsBlob(encodingType?: string): Blob; }