mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 10:26:52 +00:00
Lovelace view update ID -> Path (#7797)
* Update ID -> Path * Update views.markdown Missed a piece
This commit is contained in:
parent
ee91f59f49
commit
2dc8df1dad
@ -34,9 +34,9 @@ views:
|
|||||||
required: false
|
required: false
|
||||||
description: Cards to display in this view.
|
description: Cards to display in this view.
|
||||||
type: list
|
type: list
|
||||||
id:
|
path:
|
||||||
required: false
|
required: false
|
||||||
description: IDs are used in the URL, more info below. If you don't specify an ID, a random one will be added automatically.
|
description: Paths are used in the URL, more info below.
|
||||||
type: string
|
type: string
|
||||||
default: view index
|
default: view index
|
||||||
icon:
|
icon:
|
||||||
@ -58,11 +58,9 @@ views:
|
|||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## {% linkable_title IDs %}
|
## {% linkable_title Paths %}
|
||||||
|
|
||||||
You can link to one view from another view by its ID. For this use cards that support navigation (`navigation_path`). Do not use special characters in IDs.
|
You can link to one view from another view by its path. For this use cards that support navigation (`navigation_path`). Do not use special characters in paths.
|
||||||
|
|
||||||
IDs are also used to identify a view for editing in the Home Assistant frontend (not yet released), we will add a randomly generated ID to your view if you don't specify one. You can change this ID, as long as every view has a unique ID.
|
|
||||||
|
|
||||||
### {% linkable_title Example %}
|
### {% linkable_title Example %}
|
||||||
|
|
||||||
@ -71,7 +69,7 @@ View config:
|
|||||||
```yaml
|
```yaml
|
||||||
- title: Living room
|
- title: Living room
|
||||||
# the final path is /lovelace/living_room
|
# the final path is /lovelace/living_room
|
||||||
id: living_room
|
path: living_room
|
||||||
```
|
```
|
||||||
|
|
||||||
Picture card config:
|
Picture card config:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user