mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Update sidebar.markdown (#29140)
This commit is contained in:
parent
c1baa34398
commit
780e40e714
@ -25,18 +25,6 @@ type:
|
|||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
Alternatively, the position of the card can be configured using YAML with the `view_layout` option:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
type: entities
|
|
||||||
entities:
|
|
||||||
- media_player.lounge_room
|
|
||||||
view_layout:
|
|
||||||
position: sidebar
|
|
||||||
```
|
|
||||||
|
|
||||||
## Cards config:
|
## Cards config:
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
@ -45,3 +33,17 @@ view_layout.position:
|
|||||||
description: "The position of the card, `main` or `sidebar`"
|
description: "The position of the card, `main` or `sidebar`"
|
||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
The position of the card is configured using YAML with the `view_layout` option:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
type: sidebar
|
||||||
|
cards:
|
||||||
|
- type: entities
|
||||||
|
entities:
|
||||||
|
- media_player.lounge_room
|
||||||
|
view_layout:
|
||||||
|
position: sidebar
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user