[Vuejs]-Nuxtjs toastr and datatable plugins not working from adminLTE โ€“ 3 template

0๐Ÿ‘

โœ…

You just need to manually add the jquery and the data table styles to use the datatable class and functions.

in script array

  { src: '/plugins/jquery/jquery.min.js', body: true },
  { src: '/plugins/datatables/jquery.dataTables.min.js', body: true },
  { src: '/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js', body: true },

and in css

{ rel: 'stylesheet', href: '/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'}

Leave a comment