File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
450450To 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" >}}
You can’t perform that action at this time.
0 commit comments