Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AnalyticalTable] Expose onFilter event #6562

Open
1 task done
ThiagoSzz opened this issue Oct 28, 2024 · 0 comments
Open
1 task done

[AnalyticalTable] Expose onFilter event #6562

ThiagoSzz opened this issue Oct 28, 2024 · 0 comments
Labels
feature-request New feature or request

Comments

@ThiagoSzz
Copy link

Is your feature request related to a problem?

According to this answer, it's necessary to use the useControlledState of reactTableOptions to get access to the filter state changes of an AnalyticalTable column.

Describe the solution you'd like

My suggestion is that an onFilter event is exposed through a property of the AnalyticalTable, just like we have for the onSort and onGroup events.

const handleOnFilter = (
  event?: CustomEvent<{...}>
) => { ... }

<AnalyticalTable
    data={data}
    filterable
    onFilter={(e) => handleOnFilter(e)}
/>

Describe alternatives you've considered

No response

Additional Context

A feature like this would be useful in cases where you need to get the filters applied to the columns and store them somewhere.

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant