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
I don't want to include all the properties of an object while exporting.Could you please help me on how to exclude the required properties.
The text was updated successfully, but these errors were encountered:
Simply use the .map() function in javascript arrays before passing the objects to the export method, something like this:
.map()
const aux = json.map(el => ({ firstProperty: el.firstProperty, secondProperty: el.secondProperty })); this. exportAsExcelFile(aux, 'Test');
Imagine that the variable json contained an array with objects like: { firstProperty: any, secondProperty: any, thirdProperty: any }
json
{ firstProperty: any, secondProperty: any, thirdProperty: any }
Then the thirdProperty won't be printed in the Excel file
thirdProperty
Sorry, something went wrong.
Thanks @adrianbenjuya will try it
No branches or pull requests
I don't want to include all the properties of an object while exporting.Could you please help me on how to exclude the required properties.
The text was updated successfully, but these errors were encountered: