How to access matrix values from child element?

Hi, I’m trying to replicate this example : src post at github from the v0.4 version but it’s not working properly.

I then tried to change variables to value as it seemed more appropriate to me.

The goal of this is to give each button a different name, like in the example.
What am I doing wrong ?
Again, thanks for your help.

The matrix doesn't hold a value, using the value property won't work. I don't think the linked example is relevant anymore, you could simply define the props property with the JS syntax:

JS{

var props = {}

var labels = ['a', 'b', 'c']
props.label = labels[$]

return props

}
1 Like