I want to export the table by replacing some values in the cells.I am sharing the jsfiddle link for export in handsonTable
<div id="example1" class="hot handsontable htRowHeaders htColumnHeaders"></div>
document.addEventListener("DOMContentLoaded", function() {
var temp = {"A1":"first","A2":"second","B1":"third","B2":"fourth"};
var example1 = document.getElementById('example1');
var hot = new Handsontable(example1, {
data: Handsontable.helper.createSpreadsheetData(2, 2),
colHeaders: true,
rowHeaders: true
});
var buttons = {
file: document.getElementById('export-file')
};
var exportPlugin = hot.getPlugin('exportFile');
buttons.file.addEventListener('click', function() {
exportPlugin.downloadFile('csv', {filename: 'MyFile'});
});
`});`
In the result table the cells will be having values A1,A2,B1,B2. I want to replace these values with the corresponding values in temp object
Thanks in advance