Easiest way to get oTableTools object after initialization?
Easiest way to get oTableTools object after initialization?
rgvcorley
Posts: 29Questions: 0Answers: 0
I am initializing TableTools like so:-
[code]
var oTableTools = new TableTools(oTable,{settings});
[/code]
I would like to later on use the API methods of TableTools. I've tried saving the oTableTools object as a property in the DataTable object like so:-
[code]
oTable.oTableTools = oTableTools;
[/code]
But this doesn't seem to work. Maybe the easiest method would be to use jQuery's data(); method and simply save it on the DOM object.
[code]
var oTableTools = new TableTools(oTable,{settings});
[/code]
I would like to later on use the API methods of TableTools. I've tried saving the oTableTools object as a property in the DataTable object like so:-
[code]
oTable.oTableTools = oTableTools;
[/code]
But this doesn't seem to work. Maybe the easiest method would be to use jQuery's data(); method and simply save it on the DOM object.
This discussion has been closed.
Replies
Allan