Closed atinyasian closed 4 months ago
When setting the header in config to "true", the first row will not be interpreted as field names correctly.
this.#csvParser.parse(this.currentData, { delimiter: "", newline: "", header: true, dynamicTyping: false, complete: (results) => { console.log("Results: ", results.data); this.headerRow = results.data.splice(0,1)[0]; this.csvContent = results.data; }
Result, if header = "true":
Result, if header = "false":
This is the csv file:
What you are posting is the expected behaviour.
When setting the header in config to "true", the first row will not be interpreted as field names correctly.
this.#csvParser.parse(this.currentData, { delimiter: "", newline: "", header: true, dynamicTyping: false, complete: (results) => { console.log("Results: ", results.data); this.headerRow = results.data.splice(0,1)[0]; this.csvContent = results.data; }
Result, if header = "true":
Result, if header = "false":
This is the csv file: