This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Michael Middleditch
Posted Jan 19 - Read on Facebook

Hi all - any idea what I'm doing wrong here. Need to print the array values into a html layer to sit on some buttons - last line I think is wrong??? I can print the loop number i.e 1,2,3,4,5 but not the value in the array.

btnBandSizeTxt = [32, 33, 34, 33, 33, 34]

for i in [0...5]
btnBandSizeTxt[i] = btnTxt = new Layer
superLayer: rowContents[0]
width: 50
height: 50
borderColor: "red"
borderWidth: 4
backgroundColor: "red"
x: (i+0)*120
y: 20
btnTxt.html = [i] in btnBandSizeTxt

2 Comments

Marc Krenn

html: btnBandSizeTxt[i]

Michael Middleditch

Perfect thanks!

Read the entire post on Facebook