how do I pass on multiple values when using a custom event?
needtheanswers
5 months ago
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
5 months ago
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