-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Feature Request] Show empty/0/null instead of "undefinedundefinedundefined" #74
Comments
yeees, this can be painful and tedious. There is quite some time now a (yet) minimal set of See the config reference at the bottom: https://github.com/custom-cards/flex-table-card/blob/master/docs/config-ref.md |
Thanks, somehow I missed that. Sadly the formatters don't deal with unavailable data, but I'll try other options with the modify and contribute back at a later time. |
at this point they don't, but there is clearly the plan to allow applying multiple formatters, easily there could be one who hides edit: and btw. not you missed them, moreover they are inside the code for i.d.k. how long and indeed I forgot them until I read you issue and had the fantastic idea to introduce formatters, lol - oh wait, what? I already did, coool! |
That is a great little workaround, glad I found it. Thank you. |
Then I wonder why this issue is still open. |
First of all, thanks for this amazing card. It's the best way to see data between atributes in various entities.
I'm building some cards to check on devices and I end up having issues when these devices don't all have the same atributes. There's the option to use
strict: true
but I actually want to see all devices. The problem is that makes the table look worse (last column):Now, when it comes to numbers, I managed to fix using the modify argument like this
modify: parseInt(x) || 0
and it works:But JS is pretty new to me and I don't know how to make something similar to fix string or dates, or how to just replace "undefinedundefinedundefined" with an empty column. Anyone had similar issues and got tips?
So yeah, my request would be to solve "issues" like this directly in the card.
Thanks in advance!
The text was updated successfully, but these errors were encountered: