Layout with variable number of elements

Certified Associate Developer

Hi!

I have a variable number of elements composed of richtext and grid. Previously I used a columnsLayout which allowed me to put 3 elements in a row, but if I have more of them it's not readable. Currently I'm looking for a solution to have a row for every 3 element I have in data. I wanted to use a counter inside a forEach, but it seems that it's not working like in other programming languages. So I would like to know which is an optimal solution to create a layout of variable number of elements.

  Discussion posts and replies are publicly visible