Data Table using shadcn and Tanstack Table
Answered
Mugger Crocodile posted this in #help-forum
Mugger CrocodileOP
I've had a look at the docs of shadcn Data Table ( https://ui.shadcn.com/docs/components/data-table ), how do I make it so that when you click on any row or a specific text in the options menu, you get redirected to a new page? I'll need the data of the row aswell as be able to use props...
Redirection happens in columns.tsx but a const is exported, not a function which does not allow me to pass in any props..
Thanks!
Redirection happens in columns.tsx but a const is exported, not a function which does not allow me to pass in any props..
Thanks!
Answered by Mugger Crocodile
Fixed, I created another client component with hooks and got the current path
2 Replies
Mugger CrocodileOP
Do I need to edit the default data-table and drop the props there?
Mugger CrocodileOP
Fixed, I created another client component with hooks and got the current path
Answer