I am using laravel spark application. I want to use datatable draw function like this (
(#mytable).Datatable() ) in my vue.js component. But there is error that Datatable is not a function. i am using datatable through CDN.
If (#mytable) is supposed to to be jQuery selector, then it should be something like
and then use draw(),
Also note the capital T in DataTable.
Also worth noting is that I tend to use v-once on thr table to make sure that Vue and DataTables don't try to control the same DOM elements.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.