how can I remove a tool bar at the top of a datatable? I have tried the dirty way:
$(document).load(function() {
$('.btn-group .float-right .tabletools-topbar').hide();
});
Thanks!
how can I remove a tool bar at the top of a datatable? I have tried the dirty way:
$(document).load(function() {
$('.btn-group .float-right .tabletools-topbar').hide();
});
Thanks!
You need to set the sDom
parameter according to your needs when initializing your datatable.
If you only want a simple table, just do :
$('#yourTable').dataTable({
"sDom": 't'
});
Here is a list of allowed options :
l
- Length changingf
- Filtering inputt
- The table!i
- Informationp
- Paginationr
- pRocessing