I'm trying to get the data from Object using object.variable format not object.property format which is right and default one. I'm doing Excel export and import. I need to do styling the first row(header) and it increments like A1, B1, C1, D1 ... and so on as you know.
so I've made this function.
function export() {
let ws = XLSX.utils.json_to_sheet(data) // object: {A1: {v: 'please'}, B1: {v: 'help'} ... }
for(let i=65; i<this.data.length + 65; i++) {
let alphabets = String.fromCharCode(i)
let cells = alphabets+1
this.style(ws.cells) //doesn't work
}
...
}
I'm guessing getting data by using this weird object.variable format wouldn't work at all, but I really need to do this.... otherwise I have to code everything one by one.. and all styles in 23 pages are different so it will be such pain in the ass for me....
please help!