Mr.boy
Mr.boy

Reputation: 5

In ui-grid how can i bind my click function on the original nextPage button

enter image description here

How can I bind my click function on the nextpage button in angular-ui-grid ?

Upvotes: 0

Views: 379

Answers (1)

CMR
CMR

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

Related Questions