⌂
›
Reference
›
GridView
GridView
Display repeated content in a tiled layout.
Example
grid_view(
runs_count: 2,
spacing: 8,
run_spacing: 8,
controls: [
text(value: "A"),
text(value: "B"),
text(value: "C"),
text(value: "D")
]
)
Common properties
runs_countcontrolschildrenspacingrun_spacingexpand
Usage
grid_view(
runs_count: 3,
spacing: 12,
controls: items.map { |item| text(value: item[:name]) }
)
Notes
- Ruflet accepts both
controls:andchildren:in common examples