-
hey I'm trying to create an app where there would be multiple similar rows for data input (line items as I would refer to them) so I want to have rows, each row has a text input, each text input should be exactly the same aside from their ID. So each text input calls the same message for onChange event. I can't just add more messages as the number of rows is defined by the user during the running of the application, and this would also be quite inefficient. So how do I determine which text input has sent the message? I'm sorry if this has a really obvious answer but I couldn't find a good example for this. I've left a screenshot for more context. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You could add the row index to the message to identify the input producing the messages: enum Message {
// ...
DataChanged(usize, String),
TagChanged(usize, String),
// ...
} |
Beta Was this translation helpful? Give feedback.
You could add the row index to the message to identify the input producing the messages: