Add entity row that displays static text#5516
Conversation
|
I think text should be optional |
|
It's… a text row? why would it be optional ? |
| cast: () => import("../special-rows/hui-cast-row"), | ||
| buttons: () => import("../special-rows/hui-buttons-row"), | ||
| attribute: () => import("../special-rows/hui-attribute-row"), | ||
| text: () => import("../special-rows/hui-text-row"), |
There was a problem hiding this comment.
Why do we need to Lazy load?
There was a problem hiding this comment.
Lazy load is the default. Only ones that are super popular should be considered to be bundled. Requires an editor too.
| return html``; | ||
| } | ||
|
|
||
| return html` |
There was a problem hiding this comment.
Should we just use the generic row here to keep it the same as the others? Lest maintenance if it changes?
There was a problem hiding this comment.
generic row relies on an entity.
|
What if I wanted to just have text in the first column. As a title to the card or something. I see more use with not having the left value than having it. But just my POV |
|
This row shouldn't be used for that. We have sections etc for that. If we allow that, people will want to add features to this row that will just blow up the scope. Let's keep it like this for now. You can always put a space for text ;) |
And if someone really wanted that they can just do |
Breaking change
Proposed change
Add a new entity row to display static text.
Fixes home-assistant/core#33846
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: