You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation (https://www.papaparse.com/docs#unparse-config-default) unparse does not provide "transformHeader" functionality, so it is not possible to customize the headers while preserving the original object. Are there any plans to add this functionality in the future?
For now the only solution is to add these original properties to the original object and specify them as "columns" of UnparseConfig.
constcsvOptions: UnparseConfig={columns: ['customHeader'],// ... more properties};for(constitemofitems){item['customHeader']=item['realProperty'];}constcsvData=Papa.unparse(items,csvOptions);
The text was updated successfully, but these errors were encountered:
According to the documentation (https://www.papaparse.com/docs#unparse-config-default)
unparse
does not provide"transformHeader"
functionality, so it is not possible to customize the headers while preserving the original object. Are there any plans to add this functionality in the future?For now the only solution is to add these original properties to the original object and specify them as
"columns"
ofUnparseConfig
.The text was updated successfully, but these errors were encountered: