Rename layout option for cards to view_layout (#863)

Discussion: https://discord.com/channels/330944238910963714/351047592588869643/821281122755411968
This commit is contained in:
Thomas Lovén 2021-03-29 23:28:55 +02:00 committed by GitHub
parent 2c47ec76db
commit a3fbbee6ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,11 +64,11 @@ A user who downloads and installs your new Custom View can then use it via editi
## Store Custom Data ## 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 ```yaml
- type: weather-card - type: weather-card
layout: view_layout:
key: 1234 key: 1234
width: 54px width: 54px
entity: weather.my_weather entity: weather.my_weather