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'}
Source:stackexchange.com