This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Hey, thanks for your package. How to add multiple inputs that are dynamic? Some form might have 3 inputs, another one has 2 inputs, etc. I don't understand how to loop this component because it shows the error because of the dot in the beginning:
|
Beta Was this translation helpful? Give feedback.
Answered by
Mateo-tem
Mar 4, 2022
Replies: 1 comment
-
To add multiple inputs, take this example: .addComponents(
new TextInputComponent()
.setCustomId('customid')
.setLabel('Some text Here')
.setStyle('LONG')
.setMinLength(4)
.setMaxLength(10)
.setPlaceholder('Add your reply')
.setRequired(true),
new TextInputComponent()
.setCustomId('customid2')
.setLabel('Some text Here 2')
.setStyle('LONG')
.setMinLength(4)
.setMaxLength(10)
.setPlaceholder('Add your reply 2')
.setRequired(true)
) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mateo-tem
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To add multiple inputs, take this example: