Is it alternative for "bDestroy" or how to make code with "bDestroy" smaller?
Is it alternative for "bDestroy" or how to make code with "bDestroy" smaller?
Walter_Stolz
Posts: 46Questions: 6Answers: 0
I create the script which works very fine for me, but I have double rows in it.
Is any way to do it a little bit smaller?
[code]
$(document).ready( function () {
$('table').dataTable( {
"sDom": '<"H"CTfr>t<"F"ip>',
"bPaginate": false,
"bInfo": false,
"bJQueryUI": true,
"bScrollCollapse": false,
"bAutoWidth": false,
"sPaginationType": "full_numbers",
"oTableTools": {"sRowSelect": "single", "aButtons": [ "select_all", "select_none" ] },
} );
$('#tab2').dataTable( {
"bDestroy": true,
"sDom": '<"H"CTfr>t<"F"ip>',
"bPaginate": false,
"bInfo": false,
"bJQueryUI": true,
"bScrollCollapse": false,
"bAutoWidth": false,
"sPaginationType": "full_numbers",
"oTableTools": {"sRowSelect": "single", "aButtons": [ "select_all", "select_none" ] },
"aoColumnDefs": [{ "bVisible": false, "aTargets": [ 1, -1, -2, -3 ] }]
} );
} );
[/code]
Is any way to do it a little bit smaller?
[code]
$(document).ready( function () {
$('table').dataTable( {
"sDom": '<"H"CTfr>t<"F"ip>',
"bPaginate": false,
"bInfo": false,
"bJQueryUI": true,
"bScrollCollapse": false,
"bAutoWidth": false,
"sPaginationType": "full_numbers",
"oTableTools": {"sRowSelect": "single", "aButtons": [ "select_all", "select_none" ] },
} );
$('#tab2').dataTable( {
"bDestroy": true,
"sDom": '<"H"CTfr>t<"F"ip>',
"bPaginate": false,
"bInfo": false,
"bJQueryUI": true,
"bScrollCollapse": false,
"bAutoWidth": false,
"sPaginationType": "full_numbers",
"oTableTools": {"sRowSelect": "single", "aButtons": [ "select_all", "select_none" ] },
"aoColumnDefs": [{ "bVisible": false, "aTargets": [ 1, -1, -2, -3 ] }]
} );
} );
[/code]
This discussion has been closed.