mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
Add subview documentation (#24277)
This commit is contained in:
parent
41e20db325
commit
1184dacb78
@ -125,6 +125,28 @@ frontend:
|
||||
lovelace-background: center / cover no-repeat url("/local/background.png") fixed
|
||||
```
|
||||
|
||||
## Subview
|
||||
|
||||
View can be marked as "Subview". Subviews won’t show up in the navigation bar. When on the subview, the navigation bar only show the name of the subview and a back button.
|
||||
By default, clicking on back button will navigate to the previous view but a custom back path (`back_path`) can be set.
|
||||
|
||||
#### Example
|
||||
|
||||
Simple subview:
|
||||
|
||||
```yaml
|
||||
- title: Map
|
||||
subview: true
|
||||
```
|
||||
|
||||
Subview with custom back path:
|
||||
|
||||
```yaml
|
||||
- title: Map
|
||||
subview: true
|
||||
back_path: /lovelace/home
|
||||
```
|
||||
|
||||
{% configuration views %}
|
||||
views:
|
||||
required: true
|
||||
@ -170,6 +192,15 @@ views:
|
||||
description: "Hide/show the view tab from all users or a list of individual `visible` objects."
|
||||
type: [boolean, list]
|
||||
default: true
|
||||
subview:
|
||||
required: false
|
||||
description: Mark the view as "Subview", more info below.
|
||||
type: boolean
|
||||
default: false
|
||||
back_path:
|
||||
required: false
|
||||
description: Only for subview. Path to navigate when clicking on back button, more info below.
|
||||
type: string
|
||||
{% endconfiguration %}
|
||||
|
||||
#### Example
|
||||
|
Loading…
x
Reference in New Issue
Block a user