Help in how to add new entry to datatable or edit data of a selected row #2639
Unanswered
BearCooder
asked this question in
Q&A
Replies: 1 comment
-
Hi @BearCooder, first of all I suggest you take a look at this example because it is more complete and helped me a lot, so looking at this example I suggest you add the ADD button in the table header, perhaps aligned to the right, and the EDIT button is in the row menu, you can see in this example that they do this, if you look at the row menu, you will see the edit button. To edit, you can add a dialog. I'm sure this UX is very good. Good luck and any questions you can send here. |
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
-
Hello guys,
I am building the Datatable from shadcn documentation.
I replicated this table step by step like in the instruction and it works perfectly. Now I want to add an ADD button to add a new entry to the table. And and EDIT button that enables to edit a selected row in the table,
However when I look at the documentation the links are all dead ends. I got redirected to the Tanstack page from Shadcn.
When I go to the documentation there is only an editable example but I cannot run it.
I get Unable to run Embedded Project and a blank page.
Does anyone know how can I achieve my goal? Any help is appreciated please. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions