I use query plugin named fooTable for my data table (http://fooplugins.github.io/FooTable/)
Below is my code to initialize my datatable...
jQuery(function($){
$('.table').footable({
"paging": { "size": 15 },
// "toggleColumn": "last",
"showToggle": false,
"columns": $.get('/footable/js/columns.json'),
"rows": $.get('/footable/js/rows.json')
})
})
My question is how to do something after it finished initialize?
I try
jQuery(function($){
$('.table').footable({
"paging": { "size": 15 },
// "toggleColumn": "last",
"showToggle": false,
"columns": $.get('/footable/js/columns.json'),
"rows": $.get('/footable/js/rows.json')
})
.done(function(){
alert('do something');
})
})
But it was not working.