TableExport icon indicating copy to clipboard operation
TableExport copied to clipboard

Can I use the library with Vuejs?

Open mateo2181 opened this issue 6 years ago • 3 comments

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 avatar Nov 29 '18 21:11 mateo2181

@mateo2181 – How exactly is it not working? Does TableExport not initialize properly? Does it not update on changes? Do you have a code sample?

clarketm avatar Dec 01 '18 11:12 clarketm

Just not work. Nothing happens. I have tried with this: new TableExport(document.getElementsByTagName("table"));

mateo2181 avatar Dec 05 '18 03:12 mateo2181

Works ok for me. Within a component:

<script>
import TableExport from 'tableexport'

export default {
  mounted () {
    this.tableExport = TableExport(document.getElementsByTagName('table'))
  }
}
</script>

hvaughan3 avatar May 30 '19 13:05 hvaughan3