In my current little custom widget project, I display the content of cells from columns the user have maps, using code such as:
currentField.querySelector('textarea').innerText = grist.mapColumnNames(records[i]).fields[j]
However, I’d also like to show the column’s name as a label, and I cannot find out how to access that.
currentField.querySelector('label').innerText = grist.mapColumnNames(records[i]).fields[j].?????
Any idea on how to access this value? Thanks!