1 // DATA_TEMPLATE: dom_data
2 oTest.fnStart( "2635 - Hiding column and state saving" );
4 $(document).ready( function () {
5 $('#example').dataTable( {
10 "Set the hidden column",
12 $('#example').dataTable().fnSetColumnVis( 2, false );
14 function () { return $('#example thead th').length == 4; }
18 "Destroy the table and remake it - checking one column was removed",
20 $('#example').dataTable( {
25 function () { return $('#example thead th').length == 4; }
29 "Do it again without state saving and make sure we are back to 5 columns",
31 $('#example').dataTable( {
35 function () { return $('#example thead th').length == 5; }
38 oTest.fnCookieDestroy( $('#example').dataTable() );