Skip to content

Commit 47af9cd

Browse files
[lvgl] Update examples with selected_digit for spinbox (#5630)
* [lvgl] Update examples with selected_digit for spinbox * Changes from review --------- Co-authored-by: Jonathan Swoboda <[email protected]>
1 parent fdbcdb7 commit 47af9cd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

content/components/lvgl/widgets.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,6 @@ The `slider` can be also integrated as {{< docref "/components/number/lvgl" "Num
15381538

15391539
See [Light brightness slider](/cookbook/lvgl#lvgl-cookbook-bright) and [Media player volume slider](/cookbook/lvgl#lvgl-cookbook-volume) for examples which demonstrate how to use a slider to control entities in Home Assistant.
15401540

1541-
{{< anchor "lvgl-widget-canvas" >}}
15421541
{{< anchor "lvgl-widget-spinbox" >}}
15431542

15441543
## `spinbox`
@@ -1589,7 +1588,7 @@ The spinbox contains a numeric value (as text) which can be increased or decreas
15891588
text_align: center
15901589
range_from: -10
15911590
range_to: 40
1592-
step: 0.5
1591+
selected_digit: 2
15931592
digits: 3
15941593
decimal_places: 1
15951594

content/cookbook/lvgl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ lvgl:
523523
width: 50
524524
range_from: 15
525525
range_to: 35
526-
step: 0.5
526+
selected_digit: 0
527527
rollover: false
528528
digits: 3
529529
decimal_places: 1

0 commit comments

Comments
 (0)