Skip to content

Commit a006bcb

Browse files
committed
[lvgl] Document scroll properties
1 parent 2e3e305 commit a006bcb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

content/components/lvgl/widgets.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ The properties below are common to all widgets.
3838
- `"ON"` : Always show the scroll bars (use the double quotes!).
3939
- `"ACTIVE"` : Show scroll bars while a widget is being scrolled.
4040
- `"AUTO"` : Show scroll bars when the content is large enough to be scrolled (default).
41-
41+
- **scroll_dir** (*Optional*, string): Sets the permissible scroll directions for an object - one of `LEFT`, `RIGHT`,
42+
`BOTTOM`, `TOP`, `HOR`, `VER`, `ALL` (default).
43+
- **scroll_snap_x** (*Optional*, string): For a child of a scrollable object, this property defines the snap position
44+
of the child in the X direction. One of `NONE` (default), `START`, `END`, `CENTER`.
45+
- **scroll_snap_y** (*Optional*, string): For a child of a scrollable object, this property defines the snap position
46+
of the child in the Y direction. One of `NONE` (default), `START`, `END`, `CENTER`.
4247
- **align** (*Optional*, enum): Alignment of the widget relative to the parent. A child widget is clipped to its parent boundaries. One of the values *not* starting with `OUT_` (see picture below).
4348
- **align_to** (*Optional*, list): Alignment of the widget relative to another widget on the same level:
4449
- **id** (**Required**): The ID of a widget *to* which you want to align.

0 commit comments

Comments
 (0)