I’m using Handsontable with Vue.js 2.0.
When I try to export data as a CSV file I get this error in the console. exportPlugin.downloadFile is not a function.
Code.
html:
<q-btn flat icon=“download” label=“download CSV” @click=“downloadCSV” />
script:
import Handsontable from ‘handsontable’;
methods: {
downloadCSV(){
const exportPlugin = Handsontable.plugins.getPlugin(“exportFile”)
exportPlugin.downloadFile(‘csv’)
}
}
I’m new in this field, Sorry in advance if it’s a simple error. I will really appreciate your help.
Thank you in advance.