doonfrs / pluto_grid_plus

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
18 stars 20 forks source link

[Help] How to create a custom filter for Dates using a datePicker? #31

Closed fdOli closed 4 months ago

fdOli commented 5 months ago

Hello, Is possible to have a custom input widget for the filter(s) instead the input text? I need one to filter dates, more specifically 'between' dates. My idea is to have two date picker(s), one for the START and one for END date in the filter area. Please let me know how I should implement this.

*I posted this question on the original pluto_grid but I believe it's not being maintained anymore.

Thanks!

doonfrs commented 4 months ago

You can start by using the filterWidget attribute for PlutoColumn when you build the grid columns array, this will allow you to make your custom widget ( data picker maybe) and control the events after that, you need to manually filter the data and refresh the grid for sure.

fdOli commented 4 months ago

Thank you so much!