You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that some of the wording might be a bit misleading. I apologise for that.
I am trying to have a component, sort of like a container panel, that will allow the user to dynamically add <input type="text"> components.
The idea is that at some point, the user will be able to click a button in this Container's parent, and something will be done with the contents of all these text inputs
Home // user can trigger other actions that require all the text from the Vec<TextInput>s
|--> Container // user can add to the Vec<TextInput> through a button in this component
|--> Vec<TextInput> // merely holding text
My TextInput component, right now, is a bit of a beefed-up version of the TextInput component in the password_strength example. Instead of a function_component, it's a "proper" component.
I am having a lot of issues so far, so I think it's faster to ask: has anyone here tried to tackle a similar problem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Please note that some of the wording might be a bit misleading. I apologise for that.
I am trying to have a component, sort of like a container panel, that will allow the user to dynamically add
<input type="text">
components.The idea is that at some point, the user will be able to click a button in this Container's parent, and something will be done with the contents of all these text inputs
My TextInput component, right now, is a bit of a beefed-up version of the TextInput component in the password_strength example. Instead of a
function_component
, it's a "proper" component.I am having a lot of issues so far, so I think it's faster to ask: has anyone here tried to tackle a similar problem?
Beta Was this translation helpful? Give feedback.
All reactions