Angularjs 已更改选项卡上ag网格中的清除过滤器

Angularjs 已更改选项卡上ag网格中的清除过滤器,angularjs,angularjs-directive,ag-grid,Angularjs,Angularjs Directive,Ag Grid,对于ag网格,我有默认过滤器和自定义过滤器。我想在选项卡更改时清除过滤器 $scope.gridOptions = { columnDefs: columnDefs, rowData: null, angularCompileRows: true, enableSorting: true, enableColResize: true, enableFilter: true, rowHe

对于
ag网格
,我有默认过滤器和自定义过滤器。我想在选项卡更改时清除过滤器

$scope.gridOptions = {
        columnDefs: columnDefs,
        rowData: null,
        angularCompileRows: true,
        enableSorting: true,
        enableColResize: true,
        enableFilter: true,
        rowHeight: 35,
        rowSelection: 'single',
        onSelectionChanged: onSelectionChanged,
        isExternalFilterPresent: isExternalFilterPresent,
        doesExternalFilterPass: doesExternalFilterPass,
        overlayLoadingTemplate: '<span class="ag-overlay-loading-center">Please wait while your rows are loading</span>',
        overlayNoRowsTemplate: '<span style="    transform: translateY(-50%);opacity: 0.25;font-size: 3em;">No data available</span>'
    };
请建议使用任何方法重置
ag网格的所有过滤器

尝试以下操作:

$scope.gridOptions.api.setFilterModel(null);
$scope.gridOptions.api.onFilterChanged();

我们是否有任何选项可以更改筛选器上的列名?筛选器模型在清除筛选器时变为空。有什么方法可以在清除时获取列名?
$scope.gridOptions.api.setFilterModel(null);
$scope.gridOptions.api.onFilterChanged();