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
var data = [ { name: "Test 1", age: 13, average: 8.2, approved: true, description: "using 'Content here, content here' " }, { name: 'Test 2', age: 11, average: 8.2, approved: true, description: "using 'Content here, content here' " }, { name: 'Test 4', age: 10, average: 8.2, approved: true, description: "using 'Content here, content here' " }, ];
If I don't want to convert age property to csv. Is there any way?
The text was updated successfully, but these errors were encountered:
You can filter data before exporting to csv ?
Sorry, something went wrong.
You could use the map function to create an array of new objects.
let data = data.map(d => { return { name: d.name, average: d.average, ... }; });
I have made a PR. In the new version you have to send an array of the keys you want to export in csv.
new Angular2Csv(data, filemame, {keys: keys});
No branches or pull requests
var data = [ { name: "Test 1", age: 13, average: 8.2, approved: true, description: "using 'Content here, content here' " }, { name: 'Test 2', age: 11, average: 8.2, approved: true, description: "using 'Content here, content here' " }, { name: 'Test 4', age: 10, average: 8.2, approved: true, description: "using 'Content here, content here' " }, ];
If I don't want to convert age property to csv. Is there any way?
The text was updated successfully, but these errors were encountered: