Skip to content

Commit e4b9fec

Browse files
committed
Changes from review
1 parent ba25db1 commit e4b9fec

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

content/components/lvgl/widgets.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,8 @@ A notable state is `checked` (boolean) which can have different styles applied.
443443
```yaml
444444
# Example widget with text:
445445
- button:
446-
text: "Click me!"
447446
id: btn_id
447+
text: "Click me!"
448448
```
449449

450450
To create an image button, add a child [`image`](#lvgl-widget-image) widget to it:
@@ -485,15 +485,16 @@ See [Remote light button](/cookbook/lvgl#lvgl-cookbook-binent) for an example wh
485485

486486
> [!NOTE]
487487
> Where other widgets are added as children, they must be updated directly.
488+
488489
```yaml
489-
# Example widget:
490+
# Text update example
490491
- button:
491-
text: "Click me!"
492492
id: btn_id
493+
text: "Click me!"
493494
on_click:
494495
lvgl.button.update:
495-
text: "Clicked"
496496
id: btn_id
497+
text: "Clicked"
497498
```
498499

499500
{{< anchor "lvgl-widget-buttonmatrix" >}}

0 commit comments

Comments
 (0)