PricingDocsAcademy
Bluesky ...
Fri, Dec 13, 8:31 AM

how do I pass on multiple values when using a custom event?

  • needtheanswers

    2 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

    2 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
    ❤️1
  • needtheanswers

    2 months ago

    Thank you so much Andreas🙏
  • PeterShaw

    1 month ago

    Is there a tutorial on how to add values to an object to pass on more than one value?
  • Tod

    1 month ago

    Great energy @PeterShaw! Your continuous contribution to the toddle Community just made you advance to Community Level 3!

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.