[rowCallback] - Accessing LocalStorage data

[rowCallback] - Accessing LocalStorage data

AddupAddup Posts: 11Questions: 5Answers: 0

Hi,

I'm unable to access data stored in localstorage, am I missing something?

Here is my code:

columns: [{ data: "name" }],
rowCallback: function( row, data ) {
if (data[0] != null ) {
$('td:eq(0)', row).addClass('ok');
}
}
my localstorage key is: todo

Thanks!

Answers

  • kthorngrenkthorngren Posts: 20,273Questions: 26Answers: 4,765

    I assume there is something more to your question than retrieving the localStorage item like this:
    var todo = localStorage.getItem("todo");

    Please provide more details of what you are wanting to do.

    Kevin

This discussion has been closed.