fnUpdate documentation issue
fnUpdate documentation issue
zorfling
Posts: 1Questions: 0Answers: 0
There's a minor bug in the documentation of fnUpdate for a whole row.
[code]
$(document).ready(function() {
var oTable = $('#example').dataTable();
oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell
oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], 1, 0 ); // Row
} );
[/code]
The Row line above should not have the last argument, otherwise it puts all the values in the first column.
[code]
oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], 1, 0 ); // updating first column
oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], 1 ); // updating row
[/code]
[code]
$(document).ready(function() {
var oTable = $('#example').dataTable();
oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell
oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], 1, 0 ); // Row
} );
[/code]
The Row line above should not have the last argument, otherwise it puts all the values in the first column.
[code]
oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], 1, 0 ); // updating first column
oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], 1 ); // updating row
[/code]
This discussion has been closed.
Replies
Allan