ssuperczynski / ngx-easy-table

The Easiest Angular Table. 12kb gzipped! Tree-shakeable. 55 features and growing!
https://ngx-easy-table.eu
MIT License
371 stars 100 forks source link

How to restore table original data after row search is disabled (when row is filtered) #328

Closed ainominako1996 closed 1 year ago

ainominako1996 commented 3 years ago

When I use row search, I don't want row search always display, so I wrote:

public enableSearch(): void {
  this.configuration.searchEnabled = !this.configuration.searchEnabled;
  if (this.configuration.searchEnabled) {
    this.additionalActionsMenuSearch = "Disable Search";
  } else {
    this.additionalActionsMenuSearch = "Enable Search";
  }
}

When I filter data with row search, if I disable search function, the table never restore again. And enable search function again, it can't show which row is filtered.

How to restore table original data when row is filtered and searchEnabled function is disable?

Thank you