Reputation: 1975
I use the Angular datatables module. https://github.com/l-lin/angular-datatables
I want to catch the initComplete event, when the datatable finished draw all the elements.
Thanks
Upvotes: 0
Views: 3109
Reputation: 621
initComplete
is not an event it's a callback, which is fired when the table is initialized.
$scope.dtOptions = DTOptionsBuilder.newOptions()
.withBootstrap()
.withOption('initComplete', function(){
// Do your stuff here, you could even fire your own event here with $rootScope.$broadcast('tableInitComplete');
});
Upvotes: 7