Replies: 1 comment
-
Hello @jbudus I was able to implement a global search functionality in shadcn-ui/Table with the help of the information gotten from the post (URL provided) below: All I had to do was define a useState variable: Added the globalFilter object in the state object-key inside the initialised constant (table):
Then modified the Input searchbar accordingly like this:
Hope it helps. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm by no means an expert but know enough to implement a working MERN stack. I'm using shadcn-ui Table and have implemented the reusable components that are shown in the document all successfully. However, I cannot figure out how to move from column filtering to global filtering and though have studied tanstack-table as much as I could, failed to be successful. I would love to create a component that uses the best of shadcn ui Table and implements globalFiltering.
Does anyone have the patience to provide a guide or sample of this for me. I've watched YouTube videos, seen examples of tanstack implementation but not any that show shadcn-ui/Table + global filtering implementation of tanstack/table.
Thank in advance
J
Beta Was this translation helpful? Give feedback.
All reactions