Closed Inc0n closed 4 years ago
For grid layouts there's no need to specify the rows and columns explicitly as you enter stuff, unless you want gaps. If you specify at least one row-size and the col-sizes when constructing the grid-layout, it'll automatically duplicate rows as you enter elements.
Otherwise to construct nested layouts, there's alloy:build-ui
.
Having a macro to do the heavy lifting for adding items to a layout, replaces and generates the same code, perhaps could be a good idead i.e originally:
now to:
Macro details/specs:
This macro would:
structure-lst