lyft / clutch

Extensible platform for infrastructure management
https://clutch.sh
Apache License 2.0
1.67k stars 116 forks source link

frontend: Add options to the table header component #3058

Closed lucechal14 closed 2 months ago

lucechal14 commented 2 months ago

Similar to sorting, the user can send attributes (options?: JSX.Element) in the columns list to the Table component to specify if they want to display options (e.g. filters) while also providing the component that needs to be rendered.

An example could be something like the following:

Screenshot 2024-07-04 at 5 43 42 p m Screenshot 2024-07-08 at 10 28 45 a m

Filtering logic and UI is 100% responsibility of the father component, table header only renders the component provided