8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
label
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
label supports multiline texts: https://docs.lvgl.io/8.3/widgets/core/label.html#newline \n should start a new line. Currently:
\n
- label: align: center id: lbl_id y: 30 recolor: true text: 'Write a #ff0000 red# word\nand a #0000ff blue# one'
produces: looks like \n is interpreted textually, not being escaped.
Other escape sequences like \u, \U should be supported on long term...
\u
\U
Also LVGL supports formatting with printf which is also ESPHome-friendly: https://docs.lvgl.io/8.3/widgets/core/label.html#set-text this could be usable when updating labels from lambdas.
printf
Maybe some configurable options would be needed? Like escape_chars: true and use_printf: true?
escape_chars: true
use_printf: true
The text was updated successfully, but these errors were encountered:
dropdown
roller
btnmatrix
For escape sequences like newline to be translated, enclose the string in double quotes:
"Write a #ff0000 red# word\nand a #0000ff blue# one"
Sorry, something went wrong.
😬 can't believe I missed that, sorry.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
label
supports multiline texts: https://docs.lvgl.io/8.3/widgets/core/label.html#newline\n
should start a new line. Currently:produces:

looks like
\n
is interpreted textually, not being escaped.Other escape sequences like
\u
,\U
should be supported on long term...Also LVGL supports formatting with
printf
which is also ESPHome-friendly: https://docs.lvgl.io/8.3/widgets/core/label.html#set-text this could be usable when updating labels from lambdas.Maybe some configurable options would be needed? Like
escape_chars: true
anduse_printf: true
?The text was updated successfully, but these errors were encountered: