I'm using Yajra datatable from a weblesson tutorial.
All is working great, but the data-table is NOT responsive.
I included this code :
$('#user_table').DataTable({
responsive: true,
Thanks to Omer :
I added two CDN :
<script src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap4.min.js"></script>
<link rel="https://cdn.datatables.net/rowgroup/1.1.1/css/rowGroup.bootstrap4.min.css" />
and I REMOVE this :
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css" />
All is working great now.
Like you can on this photo, my table is responsive :
EDIT :
Thanks to Omer :
I added two CDN :
<script src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap4.min.js"></script>
<link rel="https://cdn.datatables.net/rowgroup/1.1.1/css/rowGroup.bootstrap4.min.css" />
and I REMOVE this :
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css" />
All is working great now.
Thank you.