I got it to work.
Two things I learned doing this :
- load the whole layout before adding callbacks, and I found this thread helpful.
- for loops to add callbacks DO NOT WORK if the first attribute given to Input, Output or State is a component. You need the id string to be passed. Which is kind of easy, you just add
.id
to the component, but then I don’t know if you need to define the id when you instantiate the component, or if the automatic id generator of the constructor is enough. Even more so if you use clientside callbacks, make sure you enter the ID.