How can I reference a layer in a row of layers?
For example:rows = 6[1..rows].map (a) -> cellLayer = new Layer backgroundColor: "#FFF" width: width height: height borderRadius: 6 x: 200 y: a * (height + gutter) + startDelta
If want to drag the 3rd row and animate the 4th row.
Answer: You need to create another array outside the loop and then append the layer to the array inside the loop
Then you can do things like myOutsideArray.style and it'll change the style of cellLayer
Hi Edward, my approach would be to use arrays instead of the map function.
something along these lines: