24sharon
24sharon

Reputation: 1975

Angularjs datatables add Events

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

Answers (1)

Arminmsg
Arminmsg

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

Related Questions