Date picker on data-table #589
Unanswered
daryllvsantos
asked this question in
Q&A
Replies: 2 comments
-
I'm trying to implement it |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've got it. If you get the Taskt as example : https://github.com/shadcn-ui/ui/tree/main/apps/www/app/examples/tasks In column definition: https://github.com/shadcn-ui/ui/blob/main/apps/www/app/examples/tasks/components/columns.tsx Just add filterFn with it. Dont forget add column in toolbar component Here I leave you and example of my code, I'm using date-fns to compare dates. Maybe it's not the best way to get it, but it is working. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has anyone tried to add the Date-Picker as an option for filtering data on data-table
Beta Was this translation helpful? Give feedback.
All reactions