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: configurable empty behavior #12

Closed daringer closed 4 years ago

daringer commented 5 years ago

Allow setting an on_empty configuration parameter to define the output behavior, if no rows are created.

on_empty:
    # to hide the entire flex-table (default: false)
    hide: true
    # if `!hide` show the following text instead of content
    text: "my story why there are no rows to show"
    # do not show the column headers (default: false)
    hide_headers: true
JamieP83 commented 5 years ago

Thanks! I can share my results that lead to this if that helps?

daringer commented 5 years ago

Sure, thx