Sha256: 6436caa01907e25105fe70ef600b11866ece0a20d9e415d73d0fb466635989c5
Contents?: true
Size: 888 Bytes
Versions: 28
Compression:
Stored size: 888 Bytes
Contents
// 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.fnTest( "And with scrolling", function () { $('#example').dataTable( { "sScrollY": 200, "aoColumnDefs": [ { "bSearchable": false, "bVisible": false, "aTargets": [ 2 ] }, { "bVisible": false, "aTargets": [ 3 ] } ] } ); $('#example').dataTable().fnDestroy(); }, function () { return $('#example tbody tr:eq(0) td').length == 5; } ); oTest.fnComplete(); } );
Version data entries
28 entries across 28 versions & 1 rubygems