1 // DATA_TEMPLATE: empty_table
2 oTest.fnStart( "5396 - fnUpdate with 2D arrays for a single row" );
4 $(document).ready( function () {
5 $('#example thead tr').append( '<th>6</th>' );
6 $('#example thead tr').append( '<th>7</th>' );
7 $('#example thead tr').append( '<th>8</th>' );
8 $('#example thead tr').append( '<th>9</th>' );
9 $('#example thead tr').append( '<th>10</th>' );
18 [ "test1@daum.net", "2011-03-04" ],
19 [ "test1@naver.com", "2009-07-06" ],
20 [ "test4@naver.com", ",hide" ],
21 [ "test5?@naver.com", "" ]
32 [ "test2@daum.net", "2009-09-26" ],
33 [ "test2@naver.com", "2009-05-21,hide" ],
34 [ "lsb@naver.com", "2010-03-05" ],
35 [ "lsb3@naver.com", ",hide" ],
36 [ "sooboklee9@daum.net", "2010-03-05" ]
43 var oTable = $('#example').dataTable({
50 { "mDataProp": "4.0.0"},
51 { "mDataProp": "4.0.1"},
52 { "mDataProp": "4.1.0"},
53 { "mDataProp": "4.1.1"},
64 return $('#example tbody tr:eq(0) td:eq(0)').html() == '1';
71 $('#example').dataTable().fnUpdate( [
77 [ "test2@daum.net", "2009-09-26" ],
78 [ "test2@naver.com", "2009-05-21,hide" ],
79 [ "lsb@naver.com", "2010-03-05" ],
80 [ "lsb3@naver.com", ",hide" ],
81 [ "sooboklee9@daum.net", "2010-03-05" ]
88 return $('#example tbody tr:eq(0) td:eq(0)').html() == '0';
93 "Original row preserved",
96 return $('#example tbody tr:eq(1) td:eq(0)').html() == '1';