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
`zoom_x`<br>`zoom_y`|`zoom`|Zoom into the chart in X or Y direction.<br>`256` for no zoom, `512` double zoom.
826
830
`update_mode`|`update_mode`|Set update mode of the chart object, default is `SHIFT`.<br>`0`: (`SHIFT`) Shift old data to the left and add the new one the right<br>`1`: (`CIRCULAR`) Add the new data in a circular way
827
831
832
+
### `cpicker`
833
+
834
+
The `cpicker` (color picker) object allows to select a color, encoded as `#RRGGBB` where RR/GG/BB are Hex values for Red/Green/Blue. Color Picker has 3 modes: "hue", "saturation", "value"; use long press to change mode.
`color`|`color_rgb`|Set or read the current color as `#RRGGBB` string, where Red/Green/Blue are encoded as 2-digit hex. Example: `#FFFF00` is yellow.
846
+
`mode`|`mode`|Set or read the current mode<br>`hue` displays a hue ring<br>`saturation` displays a saturation ring from 0 to white<br>`value` displays a brightness ring from pure color to black
847
+
`mode_fixed`|`mode_fixed`|(bool) Set or read the `mode_fixed` attribute. If `true`, there is no mode change on long-press.
848
+
`scale_width`|`arc_width`|(int) Set or read the width of the ring
849
+
`pad_inner`||This attribute is ignored but present for OpenHASP compatibility. Since LVGL 8, there is no inner circle showing the color. There color is shown on the knob instead
850
+
828
851
### `spangroup` (styled text)
829
852
830
853
!!!note "Available (since Tasmota v13.4). This object is not part of OPENhasp."
`text_letter_space`|`set_text_letter_space`|Set the letter space in pixels
870
893
`text_line_space`|`set_text_line_space`|Set the line space in pixels.
871
894
895
+
### `msgbox`
896
+
897
+
The `msgbox` (message box) object allows to display a pop-up with a text content and one or multiple buttons. The pop-up can be made "modal" (not impemented yet).
{"id":10,"obj":"msgbox","x":0,"y":0,"w%":80,"h":100,"text":"A message box with two buttons.","border_color":"#FF4400","bg_color":"#4f4f4f","bg_opa":200,"buttons_bg_color":"#FF4400","buttons_border_width":3,"buttons_border_color":"#FFFFFF","text_color":"#FFFFFF","options":["Apply","Close"]}
904
+
```
905
+
906
+
Attribute name|LVGL equivalent|Details
907
+
:---|:---|:---
908
+
`text`|`content`|Set the contect of the Message box. If you write a new value, it will add to the existing content (LVGL limitation)
909
+
`options`|(array of string, not empty) Labels for buttons
910
+
`footer_<X>`<br>`header_<X>`<br>`title_<X>`<br>`content<X>`<br>`buttons_<X>`||Prefix to set or read style attributes on sub-objects of the message box.<BR>Styles for `buttons_` cannot be read, and set the same style for all buttons.
911
+
`border_color`||Set the color of the border of the pop-up.
912
+
`text_color`||Set the text color of the content
913
+
`bg_opa`||Set the opacity of the pop-up, `255` (fully opaque) by default.
914
+
`buttons_bg_color`||Set the background color of all buttons.
915
+
`buttons_border_width`||Set the border width of all buttons.
916
+
`buttons_border_color`||Set the border color of all buttons.
0 commit comments