【发布时间】:2017-06-03 07:44:42
【问题描述】:
我不想在 ag-grid 上使用内置过滤器,所以我尝试在 ag-grid 中使用外部过滤,但没有成功。有人可以引导我朝着正确的方向前进吗?
HTML:
<input class="ag-filter-filter" id="filterText" type="text" ng- change="filterOwnerField()" ng-model="Owner" placeholder="Filter Owner" />
AngularJS:
function isExternalFilterPresent()
{
return $scope.Owner != '';
}
function doesExternalFilterPass()
{
return $scope.Owner != '';
}
$scope.filterOwnerField = function ()
{
$scope.gridOptions.api.onFilterChanged();
};
【问题讨论】: