icflorescu / mantine-datatable

The table component for your Mantine data-rich applications, supporting asynchronous data loading, column sorting, custom cell data rendering, context menus, nesting, Gmail-style batch row selection, dark theme, and more.
https://icflorescu.github.io/mantine-datatable/
MIT License
951 stars 69 forks source link

Add searching/filtering examples #5

Closed icflorescu closed 2 years ago

icflorescu commented 2 years ago

...as suggested in the Mantine discord channel...

icflorescu commented 2 years ago

I seriously considered baking the feature right into the component, I always have to implement it in my own projects.

But there's simply no way to accommodate every usage scenario out there.

Most of the times you'd have to deal with pagination, sorting, asynchronous loading; sometimes you'd have to place a search box or custom filtering criteria selectors in the header of your website/application (in fact, that's what I end up doing for most of my commercial projects).

And in real-life you'd do the actual filtering in an server API most often.

The responsibilities and areas of control are most of the times spread across your application's UI and architectural layers, and trying to fit all this in a standard component design and behavior would constrain the developer, IMO.

Unless you're trying to rebuild Excel😄

That being said, adding a few examples on the docs website would be useful.