How to use Datatable in inertia vue

32 Views Asked by At

I am using Inertia to build my application. When it comes to handling the datatable in my Inertia Vue.js application, how can I handle it? What is the best idea?

mounted() {
   $(this.$refs.table).DataTable({
     data: this.data,
     columns: [
       { title: 'ID', data: 'id' },
       { title: 'Name', data: 'name' },
     ]
   });
 }
0

There are 0 best solutions below