Hello everyone. I’m trying to write a URCap that takes in inputs from multiple HTML input-boxes and updates a preview every time any of those inputs are updated. I’m working from the example in the HelloWorld-URCap supplied with the SDK using: @Input(id = “YourInputIDHere”)
onInput(InputEvent event) { func }
But I can’t define more than one of those functions, and don’t know how to supply more than one input ID to the one I have. Any ideas? I assume some kind of OR-operator, but all my attempts so far have given errors already in the compiler.
Yeah, thank you so much, but I found your post as a suggested topic right after I had created my own with exactly the same question. We even had the same exact misunderstanding in that I also thought onInput was a reserved, unchangeable name. It’s good to know I am not alone.