Skip to content

[AnalyticalTable] Expose onFilter event #6562

@ThiagoSzz

Description

@ThiagoSzz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    2025-Q2

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions