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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to display icon as a column value?

Tom-ahawk opened this issue · comments

image

I can’t figure it out. Please help.

Cheers.

This worked for me:

  - data: icon
    name: Trend
    modify: |
      '<ha-icon icon="' + x + '"/>'

The latest update made this icon code going wrong. Now I see only "/> instead of the icon. Please advise.

please try without the modify statement, just use icon as data and you should be fine
see:

raw_content.push(`<ha-icon id="icon" icon="${_icon}"></ha-icon>`);