Reputation: 5
How can I bind my click function on the nextpage button in angular-ui-grid ?
Upvotes: 0
Views: 379
Reputation: 933
You can modify their template and add your own ng-click function. I created a Plunkr.
Template
$templateCache.put('ui-grid/pagination', ...
Add your ng-click to the template
ng-click=\"pageNextPageClick(); grid.appScope.myFunc();\"
Provide that function in their scopeProvider
appScopeProvider: {
myFunc: function() {
console.log('clicked');
},
},
Upvotes: 1