Create button dynamically?
I have some data I need to fetch from my database, and then iterate over that data and want to create buttons for each row of data. Is this possible? The documentation is a little hazy and I haven't seen any examples of a similar case.
4 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
you can pass whatever variables to whatever ButtonBuilder methods you want
I guess what I'm saying, is would something like this actually work?
I do I need to pass it as an array of plain objects to the addComponents function?
what you have is fine, assuming you don't add more than 5 buttons to the single row