I'd like to set my own background colors in listbuilder.
You can do this by doing the following:
title {
label "Subject"
display_template {
<a href="@tasks.item_url@">@tasks.title@</a>
}
html {
style "background-color: yellow;"
}
}
However, what I'd like to do is to make the background color be determined by the value of @tasks.status@ (or $tasks(status) ).
The html section does seem to have limited access to Tcl variables. Or it tries to. If I put...
title {
label "Subject"
display_template {
<a href="@tasks.item_url@">@tasks.title@</a>
}
html {
title @tasks.title@
style "background-color: yellow;"
}
}
(obviously this is just a test), however, I get an error, saying $tasks(title) is not defined.
Any other ideas? I'd really like to be able to use color/shading as a UI element.