how do I pass on multiple values when using a custom event?
needtheanswers
2 months ago
Oct 5, 2024, 4:18 PM
I have a component with an input field. On input I trigger the event that passes on the data. I would like to pass on the value of the input and the index. If I pass on either the input value or the index I don´t have a problem accessing the data but how can I pass on multiple values? Thanks a lot
Andreas Møller
2 months ago
Oct 5, 2024, 4:20 PM
You Can use either an object or an Array to Group multiple values
Object is the best option In This case since youcan label the properties e.g. Value and Index