Error in state() example

Error in state() example

kthorngrenkthorngren Posts: 22,028Questions: 26Answers: 5,082

The second example in the state() docs has this code:

var table = new DataTable('#myTable');
var state = table.state();
 
state.start = 10;
 
table.state(start).draw(false);

Line 6 should have state(state) instead.

Kevin

Replies

  • allanallan Posts: 64,552Questions: 1Answers: 10,670 Site admin

    Fixed. I'll push the update out tomorrow.

    Thanks Kevin!

    Allan

Sign In or Register to comment.