TableExport
TableExport copied to clipboard
Can I use the library with Vuejs?
Describe the bug I want to know if can I use this library in Vuejs. I tried but it isn't working.
Expected behavior Html table exported to xls.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Linux Ubuntu 16
- Browser: Chrome
- VueJs 2.5
@mateo2181 – How exactly is it not working? Does TableExport not initialize properly? Does it not update on changes? Do you have a code sample?
Just not work. Nothing happens. I have tried with this: new TableExport(document.getElementsByTagName("table"));
Works ok for me. Within a component:
<script>
import TableExport from 'tableexport'
export default {
mounted () {
this.tableExport = TableExport(document.getElementsByTagName('table'))
}
}
</script>