You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/components/lvgl/widgets.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -282,16 +282,16 @@ The arc consists of a background and a foreground arc. The indicator foreground
282
282
- **arc_opa** (*Optional*, [opacity](/components/lvgl#lvgl-opacity)): Opacity of the arc.
283
283
- **arc_rounded** (*Optional*, boolean): Make the end points of the arcs rounded. `true` rounded, `false` perpendicular line ending.
284
284
- **arc_width** (*Optional*, int16): Set the width of the arcs in pixels.
285
-
- **change_rate** (*Optional*, int8): If the arc is pressed the current value will set with a limited speed according to the set change rate. The change rate is defined in degree/second. Defaults to `720`.
285
+
- **change_rate** (*Optional*, uint16): Limits the speed at which the arc value changes when touched or dragged. The change rate is defined in degree/second. Defaults to `720`.
286
286
- **end_angle** (*Optional*, 0-360): end angle of the arc background (see note). Defaults to `45`.
287
287
- **indicator** (*Optional*, list): Settings for the indicator *part* to show the value. Supports a list of [styles](/components/lvgl#lvgl-styling) and state-based styles to customize. Draws *another arc using the arc style* properties. Its padding values are interpreted relative to the background arc.
288
288
- **knob** (*Optional*, list): Settings for the knob *part* to control the value. Supports a list of [styles](/components/lvgl#lvgl-styling) and state-based styles to customize. Draws a handle on the end of the indicator using all background properties and padding values. With zero padding the knob size is the same as the indicator's width. Larger padding makes it larger, smaller padding makes it smaller.
289
-
- **max_value** (*Optional*, int8): Maximum value of the indicator. Defaults to `100`.
290
-
- **min_value** (*Optional*, int8): Minimum value of the indicator. Defaults to `0`.
289
+
- **max_value** (*Optional*, int16): Maximum value of the indicator. Defaults to `100`.
290
+
- **min_value** (*Optional*, int16): Minimum value of the indicator. Defaults to `0`.
291
291
- **mode** (*Optional*, string): `NORMAL` : the indicator is drawn from the minimum value to the current. `REVERSE` : the indicator is drawn counter-clockwise from the maximum value to the current. `SYMMETRICAL` : the indicator is drawn from the middle point to the current value. Defaults to `NORMAL`.
292
292
- **rotation** (*Optional*, 0-360): Offset to the 0 degree position. Defaults to `0.0`.
293
293
- **start_angle** (*Optional*, 0-360): start angle of the arc background (see note). Defaults to `135`.
294
-
- **value** (*Optional*, int8): Actual value of the indicator at start, in `0` -`100` range. Defaults to `0`.
294
+
- **value** (*Optional*, int16): Actual value of the indicator at start, in `0` -`100` range. Defaults to `0`.
295
295
- Any [Styling](/components/lvgl#lvgl-styling) and state-based option to override styles inherited from parent. The arc's size and position will respect the padding style properties.
296
296
297
297
If the `adv_hittest` [flag](#lvgl-widget-flags) is enabled the arc can be clicked through in the middle. Clicks are recognized only on the ring of the background arc.
@@ -303,7 +303,14 @@ If the `adv_hittest` [flag](#lvgl-widget-flags) is enabled the arc can be clicke
303
303
304
304
- `lvgl.arc.update`[action](/automations/actions#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.
305
305
- **id** (**Required**): The ID or a list of IDs of arc widgets to be updated.
306
-
- **value** (*Optional*, int8): New value of the indicator.
306
+
- **change_rate** (*Optional*, uint16): New change rate in degree/second.
307
+
- **end_angle** (*Optional*, 0-360): New end angle of the arc background.
308
+
- **max_value** (*Optional*, int16): New maximum value of the indicator.
309
+
- **min_value** (*Optional*, int16): New minimum value of the indicator.
310
+
- **mode** (*Optional*, string): New indicator mode.
311
+
- **rotation** (*Optional*, 0-360): New offset to the 0 degree position.
312
+
- **start_angle** (*Optional*, 0-360): New start angle of the arc background.
313
+
- **value** (*Optional*, int16): New value of the indicator.
307
314
- Any [Styling](/components/lvgl#lvgl-styling) and state-based option to override styles inherited from parent. The arc's size and position will respect the padding style properties.
0 commit comments