我有上面的列 api 数据,我想使用 agGridColumnApi?.api?.filterManager?.allFilters 从中获取应用的过滤值作为字符串,但结果未定义。
我有上面的列 api 数据,我想使用 agGridColumnApi?.api?.filterManager?.allFilters 从中获取应用的过滤值作为字符串,但结果未定义。
通常我们使用
getFilterModel
从aggrid获取所有过滤器,filter api here
的文档
// Gets filter model via the grid API
const model = api.getFilterModel();
// Sets the filter model via the grid API
api.setFilterModel(model);