mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-02 03:29:14 +01:00
20 lines
504 B
JavaScript
20 lines
504 B
JavaScript
|
// DATA_TEMPLATE: dom_data
|
||
|
oTest.fnStart( "Destroy with hidden columns" );
|
||
|
|
||
|
$(document).ready( function () {
|
||
|
$('#example').dataTable( {
|
||
|
"aoColumnDefs": [
|
||
|
{ "bSearchable": false, "bVisible": false, "aTargets": [ 2 ] },
|
||
|
{ "bVisible": false, "aTargets": [ 3 ] }
|
||
|
]
|
||
|
} );
|
||
|
$('#example').dataTable().fnDestroy();
|
||
|
|
||
|
oTest.fnTest(
|
||
|
"Check that the number of columns in table is correct",
|
||
|
null,
|
||
|
function () { return $('#example tbody tr:eq(0) td').length == 5; }
|
||
|
);
|
||
|
|
||
|
oTest.fnComplete();
|
||
|
} );
|