1681-engine / ui / stackLayout
Function: stackLayout() ​
ts
function stackLayout(sizes, options?): StackResult;Defined in: src/ui/layout/stack.ts:29
Lays items one after another down (or across) with a gap, inside padding. The stack's size is what the items need, so a parent can lay the stack out in turn. Pure, for canvas widgets and DOM/React layouts alike.
Parameters ​
| Parameter | Type |
|---|---|
sizes | readonly Size[] |
options | StackOptions |