Skip to content
New issue

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

Enhancement to multiline #101

Open
cokeman0 opened this issue Jan 7, 2024 · 0 comments
Open

Enhancement to multiline #101

cokeman0 opened this issue Jan 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cokeman0
Copy link

cokeman0 commented Jan 7, 2024

I have some suggestions for multiline

  1. possibility to have Icon as a "code" in the value field
  2. possibility to have color as a "code" in the value field

e.g. a to-do list

[ ] task 1 - due next week - (a MDI icon checkbox, some text, in black)
[ ] task 2 - overdue - (a MDI icon checkbox, some text, in red)

or a calendar

mdi:birthdaycake - uncle tom 60 years 02.02.24 -(where text is in black, but on the day changes to red)

Today I use multiline with the following:
- type: multiline
value: >-
{%- for item in mylist['todo.my_tasks']['items'] %}
{{ item.summary}}¤
{%- endfor %}
delimiter: ¤

thinking maybe you could do something like this:
- type: multiline
value: >-
{%- for item in mylist['todo.my_tasks']['items'] %}
§icon: {{ item.icon }}
§color: {{ item.color }}
{{ item.summary}}¤
{%- endfor %}
delimiter: ¤
controlcommand: §

font, size etc, would also be nice options.

@cokeman0 cokeman0 added the enhancement New feature or request label Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant