Reputation: 255
In ag-grid with Angular, I need to get the current Quickfilter text. When I check the value of gridOptions.quickFilterText
, it's undefined and the ts definition shows it as deprecated.
Is there an API that exposes the Quickfilter text?
Upvotes: 1
Views: 3195
Reputation: 7614
You can register onFilterChanged: onFilterChanged
in gridOptions
function onFilterChanged(params){
console.log(params.api.columnController.gridApi.filterManager.quickFilter);
}
Hope this helps!
Upvotes: 1