I'd like to know if I can use the function:
$('#myTable').DataTable ({
scrolly: 300,
paginação: false
});
For all tables in my page (at once) or if I need to set up a function for each table in my row.
I'd like to know if I can use the function:
$('#myTable').DataTable ({
scrolly: 300,
paginação: false
});
For all tables in my page (at once) or if I need to set up a function for each table in my row.
You can use the selector by element type:
$('table').DataTable ({
scrolly: 300,
paging: false
});
Yes, it is possible:
$(document).ready(function() {
$('table.display').DataTable({
paging: false,
scrolly: 300
});
})
Add a class
identical to all tables (in the example, it would be display
).
I suggest you take a look at the documentation, there are examples of many features of datatable
.
References: