mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-13 12:26:29 +00:00
Rename layout option for cards to view_layout (#863)
Discussion: https://discord.com/channels/330944238910963714/351047592588869643/821281122755411968
This commit is contained in:
parent
2c47ec76db
commit
a3fbbee6ea
@ -64,11 +64,11 @@ A user who downloads and installs your new Custom View can then use it via editi
|
||||
|
||||
## Store Custom Data
|
||||
|
||||
If your view requires data to persist at a card level, there is a `layout` in the card configuration that can be used to store information. Example: Key, X and Y coordinates, width and height, etc. This can be useful when you need to store the location or dimensions of a card for your view.
|
||||
If your view requires data to persist at a card level, there is a `view_layout` in the card configuration that can be used to store information. Example: Key, X and Y coordinates, width and height, etc. This can be useful when you need to store the location or dimensions of a card for your view.
|
||||
|
||||
```yaml
|
||||
- type: weather-card
|
||||
layout:
|
||||
view_layout:
|
||||
key: 1234
|
||||
width: 54px
|
||||
entity: weather.my_weather
|
||||
|
Loading…
x
Reference in New Issue
Block a user