Hi,
I am using below code to add a row in the exported data but the data is not changing in exported file and also in the table
exportHandler = () => {
const {
data: { name },
} = this.props;
const { hotInstance } = this.hotTableComponent.current;
const newRow = [‘a’, ‘b’, ‘c’];
hotInstance.loadData([ newRow, …hotInstance.getData()]);
const exportPlugin = hotInstance.getPlugin(‘exportFile’);
exportPlugin.downloadFile(‘csv’, {
filename: ${name}-${moment().format('YYYYMMDD_HH:MM:SS')}
,
columnHeaders: true,
});
}