StateRestore and Deep Linking
StateRestore and Deep Linking
trongart
Posts: 222Questions: 51Answers: 0
I am trying to use the new StateRestore feature with deep linking as in this example. The stateRestore buttons need to be inside the $.fn.dataTable.Buttons
so they can be a separate container. For some reason this does not seem to work.
This question has an accepted answers - jump to answer
Answers
Looks like you have a couple errors in the browser's console. Try moving the buttons init code into the document.ready() function so it is in the same scope as the
table
variable. You haveB
in yourdom
option. Try removing that to eliminate the print button error.Kevin
@kthorngren Apologies! Here is the revised test case - still with the same issue.
Now you are getting this error:
I didn't take time to troubleshoot the exact issue but there is something wrong with your .js and .css include statements. I used the Download Builder to generate the proper files. See the updated test case:
http://live.datatables.net/qasagimu/2/edit
Kevin
Thanks so much! Will have a look into this.