Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Provide callbacks for filter/search capabilities on table column #548

Open
@jackcmeyer

Description

🚀 Feature Proposal

There should be the ability to filter/search for data by column. The Table component will not actually be responsible for doing the filtering, but rather expose callback such as onFilterChange that will include all filter criteria being currently applied to the table.

When a filter is chosen, there should be a badge or label that gets added above the table that indicates that a filter is being applied. The badge should have a close button in it, that when clicked, removes the filter criteria.

For columns that have a defined list of values (such as an enum like diagnosis status), the filter list should be static and not allow for any value to be typed in.

For columns that don't have as nice of structured data (such as patient name), the filter box should be a text field that allows any value to be entered.

Technical Notes

  • table should have some sort of callback that reports back what filter criteria is being applied
  • there should be an icon next to the header that looks like https://fontawesome.com/icons/filter. When the icon is clicked it should render small popup that allows for the user to enter criteria

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions