custom-cards / flex-table-card

Highly Flexible Lovelace Card - arbitrary contents/columns/rows, regex matched, perfect to show appdaemon created content and anything breaking out of the entity_id + attributes concept
GNU General Public License v3.0
198 stars 23 forks source link

Feature Request: Style based on cell contents #13

Closed dvanderb closed 5 years ago

dvanderb commented 5 years ago

It would be great to be able to apply styles(think card-mod or card-modder) to cells based on their contents. For example I have a table showing device status for wireless sensors and I'd like to be able to color the cell text red if the cell entry is "disconnected"

dvanderb commented 5 years ago

Actually figured out how to do this with the modifier..

daringer commented 5 years ago

good to hear that you have sorted it out, I would have suggested modifier anyways being the most flexible solution anyways...

thorschtn commented 3 years ago

@dvanderb Would you be so kind as to post an example of how you solved value-dependent formatting with modify? I can't do it. Thanks a lot.