mirror of https://github.com/espruino/BangleApps
fix docs
parent
a59957be1e
commit
3fc4522722
|
@ -30,7 +30,7 @@ g.clear();
|
||||||
layout.render();
|
layout.render();
|
||||||
```
|
```
|
||||||
|
|
||||||
`layoutObject` has:
|
`layoutObject` (first argument) has:
|
||||||
|
|
||||||
- A `type` field of:
|
- A `type` field of:
|
||||||
- `undefined` - blank, can be used for padding
|
- `undefined` - blank, can be used for padding
|
||||||
|
@ -53,7 +53,12 @@ layout.render();
|
||||||
- A `pad` integer field to set pixels padding
|
- A `pad` integer field to set pixels padding
|
||||||
- A `fillx` int to choose if the object should fill available space in x. 0=no, 1=yes, 2=2x more space
|
- A `fillx` int to choose if the object should fill available space in x. 0=no, 1=yes, 2=2x more space
|
||||||
- A `filly` int to choose if the object should fill available space in y. 0=no, 1=yes, 2=2x more space
|
- A `filly` int to choose if the object should fill available space in y. 0=no, 1=yes, 2=2x more space
|
||||||
- `width` and `height` fields to optionally specify minimum size options is an object containing:
|
- `width` and `height` fields to optionally specify minimum size
|
||||||
|
|
||||||
|
|
||||||
|
`options` (second argument) is an object containing:
|
||||||
|
|
||||||
|
|
||||||
- `lazy` - a boolean specifying whether to enable automatic lazy rendering
|
- `lazy` - a boolean specifying whether to enable automatic lazy rendering
|
||||||
- `btns` - array of objects containing:
|
- `btns` - array of objects containing:
|
||||||
- `label` - the text on the button
|
- `label` - the text on the button
|
||||||
|
|
Loading…
Reference in New Issue