Export to excel in vue table

i have a table which i want to export to excel ,with a button next to the table which exports the table to excel. data. i am using vue and the data is dynamic with the backend integration.how canm i do that ?

Yes, you can.


i tried with that code already, it gives me followin gerror

This dependency was not found:

  • @/vendor/Export2Excel in ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib!./node_modules/vuetify-loader/lib/loader.js!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UserProfile.vue?vue&type=script&lang=js&

You need to package Export2Excel.js by yourself.

You can use this package.

thanks it worked, issue fixed.