0

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

1 Answer 1

7

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');
        });
Sign up to request clarification or add additional context in comments.

1 Comment

I had to remove the withBootstrap() call and it works perfectly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.