Adding new rows in table from website.
Answered
Sloth bear posted this in #help-forum
Sloth bearOP
Does anyone know how to add rows for a table from the actual website. I can't find any information at all on this. Every google or youtube thing I search is only people showing you how to setup the tables and do pagination and stuff lke that.
16 Replies
@Sloth bear Does anyone know how to add rows for a table from the actual website. I can't find any information at all on this. Every google or youtube thing I search is only people showing you how to setup the tables and do pagination and stuff lke that.
Sorry, I didn’t quite get you, can you try again?
@Anay-208 Sorry, I didn’t quite get you, can you try again?
Sloth bearOP
Yes, thanks for responding. On the next js website it has a add new button for the table, and that's what I want to do but there is no information on it anywhere. I was asking if anyone knew how do it or could point me in the right direction.
@Sloth bear Yes, thanks for responding. On the next js website it has a add new button for the table, and that's what I want to do but there is no information on it anywhere. I was asking if anyone knew how do it or could point me in the right direction.
If you see at the top, there is a button for code
@Anay-208 If you see at the top, there is a button for code
Sloth bearOP
https://nextui.org/docs/components/table#use-case-example Scroll to use case example
@Anay-208 If you see at the top, there is a button for code
Sloth bearOP
Yes but the button does nothing
let me see
Are you referring to add new button @Sloth bear
@Sloth bear Yes
nextui expects you to manually add a onClick function, and ask the user for details, and add that. It won't provide you code for all
Sloth bearOP
I know about the normal insertRow() on html but I cant find anything for this
Original message was deleted
users.push() after asking all the infoAnswer
@Anay-208 `users.push()` after asking all the info
Sloth bearOP
no way it was this easy 🤦â€â™‚ï¸
thanks man sorry for the hassle
... I understand, It took me a few mins to find this out
@Anay-208 `users.push()` after asking all the info
can you mark my answer as a solution?