carbon-design-system / ibm-products

A Carbon-powered React component library for IBM Products
https://ibm-products.carbondesignsystem.com
Apache License 2.0
97 stars 138 forks source link

feat(Datagrid): Allow user to pass in custom `filterType` to useDatagrid #3670

Open AlexanderMelox opened 1 year ago

AlexanderMelox commented 1 year ago

What will this achieve?

This will allow users to include their own custom filtering methods inside of useFiltering

How will success be measured?

User should be able to pass in a custom filterType

### Tasks
- [ ] Add new `custom` property to `filterTypes` in `useFiltering` hook
- [ ] Render `custom` filter component in `useFilters`
- [ ] New filter data structure will need to be updated to reflect the `custom` property
elycheea commented 1 year ago

From backlog Nov 9, we are wondering if this can be after the initial filtering extension release as an enhancement.

elycheea commented 1 year ago

Could this enhancement also be a way to cover #3713 ?

elycheea commented 9 months ago

@matthewgallo to add more detail on acceptance criteria.

Rakesh-Addepalle commented 7 months ago

@elycheea can we have a custom mechanism available to render the filter layout in the data grid with customised content, instead of relying solely on an array of objects for definition? The requirement entails utilising various flyover layouts to define data, which is subsequently fetched to populate the grid accordingly. For instance, there may be scenarios where the filter depends on other factors that are not included in the scope of data defined in the data grid. In such cases, filtering should encompass data across all records, not just those present on the current page. Additionally, there's a need for flexibility in the filter layout to meet design specifications