LazyVGrid
A vertical grid that builds cells only as they scroll into view.
<LazyVGrid ... />
Topics
Properties
| Name | Type | Required | Description |
|---|---|---|---|
itemCount |
number | required | Number of cells. |
itemFactory |
function | required | itemFactory(index) returns the cell's view. |
columns |
number | optional | Columns per row. |
rowHeight |
number | optional | Row height in points. |
spacing |
number | optional | Gap between cells in points. |
reorderable |
boolean | optional | Cells reorder by dragging. |
onReorder |
function | optional | onReorder(difference) after a drag. |
Platform notes
- AppKit and UIKit.
Source: lua/ui/lazy.lua:37 (ns.LazyVGrid)