tonjohn
tonjohn

Reputation: 255

Ag-Grid: get Quickfilter text

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

Answers (1)

Pratik Bhat
Pratik Bhat

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

Related Questions