Angular UI grid.
角UI网格。
My requirement is to trigger a function when ever some one applied a filter on the grid.
我的要求是,当某个应用程序在网格上应用一个过滤器时触发一个函数。
Any help is appreciated
任何帮助都是赞赏
1 个解决方案
#1
1
You can listen to the filterChanged
event when you register the gridApi.
当您注册gridApi时,您可以侦听filterChanged事件。
gridOptions.onRegisterApi = function(gridApi){
$scope.gridApi.core.on.filterChanged($scope, function(){
// your logic goes here
}
}
#1
1
You can listen to the filterChanged
event when you register the gridApi.
当您注册gridApi时,您可以侦听filterChanged事件。
gridOptions.onRegisterApi = function(gridApi){
$scope.gridApi.core.on.filterChanged($scope, function(){
// your logic goes here
}
}