Skip to content

Commit cb43850

Browse files
authored
[lvgl] Document change in spinbox config (#5263)
1 parent 6056fdf commit cb43850

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

content/components/lvgl/widgets.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ In addition to visual styling, each widget supports some boolean **flags** to in
119119
LVGL only supports **integers** for numeric `value`. Visualizer widgets can't display floats directly, but they allow scaling by 10s. Some examples in the {{< docref "/cookbook/lvgl" "Cookbook" >}} cover how to do that.
120120

121121
{{< /note >}}
122+
122123
{{< anchor "lvgl-widget-parts" >}}
123124

124125
## Widget parts
@@ -1575,13 +1576,15 @@ The spinbox contains a numeric value (as text) which can be increased or decreas
15751576
- **range_from** (*Optional*, float): The minimum value allowed to set the spinbox to. Defaults to `0`.
15761577
- **range_to** (*Optional*, float): The maximum value allowed to set the spinbox to. Defaults to `100`.
15771578
- **rollover** (*Optional*, boolean): While increasing or decreasing the value, if either the minimum or maximum value is reached with this option enabled, the value will change to the other limit. If disabled, the value will remain at the minimum or maximum value. Defaults to `false`.
1578-
- **step** (*Optional*, float): The granularity with which the value can be set. Defaults to `1.0`.
1579+
- **selected_digit** (*Optional*, int): The ordinal number of the digit to be initially focused. Defaults to `0` which
1580+
represents the least significant digit. This digit will
1581+
be incremented or decremented by one when `increment` or `decrement` actions are called.
15791582
- **value** (*Optional*, float): Actual value to be shown by the spinbox at start. Defaults to `0`.
15801583

15811584
{{< note >}}
15821585
The sign character will only be shown if the set range contains negatives.
1583-
15841586
{{< /note >}}
1587+
15851588
**Actions:**
15861589

15871590
- `lvgl.spinbox.update` [action](#actions-action) updates the widget styles and properties from the specific options above, just like the [lvgl.widget.update](#lvgl-automation-actions) action is used for the common styles, states or flags.

0 commit comments

Comments
 (0)