iTwin / iTwinUI

A design system for building beautiful and well-working web interfaces.
https://itwin.github.io/iTwinUI/
MIT License
101 stars 37 forks source link

Filters in Table #909

Open hanan-commits-work opened 1 year ago

hanan-commits-work commented 1 year ago

Feature

Greetings. The "dropdown selection" in the filter was available in 2.0 out of the box using showDistinctValueFilters and the developers didn't need to implement this capability from the scratch. we couldn't find this feature in 3.0, so I assume it is removed, but since it is deprecated in 3.0, we have to reinvent the wheel every time just for this basic functionality that was available in the previous version. So we request that iTwin provides such ease in the new update as well.

Examples

This is how the 2.x filters worked, image

And this is the latest iTwinUi image

mayank99 commented 1 year ago

Have you seen the custom examples at https://github.com/iTwin/iTwinUI-react/discussions/691?

hanan-commits-work commented 1 year ago

Yes, I did something similar in my application. But the problem is, we have to do this repeatedly without much flexibility. We want to make it as generic as possible, but to do that we would need to create our own wrapper, which is not feasible at the moment. So we ask that Bentley provides the same functionality it was providing prior to the update.

veekeys commented 1 year ago

Hello, @hanan-commits-work

If you have already added one in your application, would you mind contributing to iTwinUI? We have Contributing guide which can help you start, so you could add generic component and make it available for everyone.

hanan-commits-work commented 1 year ago

Hi. The one I made isnt generic just fits the business requirement of our project and it is based on 691.

r100-stack commented 2 months ago

Some custom filter ideas/starting points that include SearchBox, list of checkboxes, etc.: https://github.com/iTwin/iTwinUI/discussions/1672#discussioncomment-7491351