We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The title and header are merged in the latest version. this is my logic when using the latest version in angular project:
handleDownloadCsv() { // handle the export to csv const options: ConfigOptions = { filename: `TestCSV_${new Date().toLocaleString().replace(' ', '_')}`, fieldSeparator: ',', quoteStrings: true, decimalSeparator: '.', // showLabels: true, showTitle: true, title: 'TEST TITLE', useTextFile: false, useBom: true, useKeysAsHeaders: true, }; const csvConfig = mkConfig(options); const csvData: CsvResultItem[] = this.exportProperties.map((data) => ({ [this.translate.onTranslating('Property_Name')]: data.name || '', [this.translate.onTranslating('Total_Lock(s)')]: data.totalLock || '', [this.translate.onTranslating('Total_Department(s)')]: data.departmentCount || '', [this.translate.onTranslating('Location')]: data.country || '', })); const csvOutput = generateCsv(csvConfig)(csvData); download(csvConfig)(csvOutput); }
Current title behavior
Expected behavior In version 0.2.1, the CSV title will be positioned above the first header, as shown in the picture below.
The text was updated successfully, but these errors were encountered:
Fix issue #93
7c7a2bc
Fix issue #93 (#94)
e7607c5
* Fix issue #93 * Bump version
Thanks for catching this! I merged in a fix (PR #94) and published v1.2.4 on npm.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
The title and header are merged in the latest version.
this is my logic when using the latest version in angular project:
Current title behavior
Expected behavior
In version 0.2.1, the CSV title will be positioned above the first header, as shown in the picture below.
The text was updated successfully, but these errors were encountered: