Ejemplo 1: tablas de datos receptivas
Javascript123$('#myTable').DataTable( { responsive: true} );
Ejemplo 2: hacer que la tabla de datos sea receptiva
You need to include responsive css and js
https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap.css
https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.js
<table class="table table-striped table-bordered dataTable display" cellspacing="0" width="100%">
</table>
This is working for me. One thing always keep in mind that you have to include
jquery and datatable css and js.
$('.dataTable').dataTable({
....
"responsive": true,
....
});
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)