fnUpdate documentation issue

fnUpdate documentation issue

zorflingzorfling Posts: 1Questions: 0Answers: 0
edited October 2012 in Bug reports
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]

Replies

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin
    Oops! Thanks for spotting that and letting me know. Now fixed.

    Allan
This discussion has been closed.