mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 18:06:54 +00:00
Views: add illustration of layout strategies (#31745)
- illustrating the 3 traditional view types - rephrase section on adding view so that it reads procedural - add related topics
This commit is contained in:
parent
c56ea190af
commit
708f5da796
@ -5,19 +5,27 @@ description: "A view is a tab inside a dashboard."
|
|||||||
|
|
||||||
A view is a tab inside a dashboard. Views control the layout.
|
A view is a tab inside a dashboard. Views control the layout.
|
||||||
|
|
||||||
|
<p class='img'>
|
||||||
|
<img src='/images/dashboards/layout-types.png' alt='The three basic view layouts: Panel, sidebar, and masonry'>
|
||||||
|
The three basic view layouts: panel, sidebar, and masonry
|
||||||
|
</p>
|
||||||
|
|
||||||
There are four different view types:
|
There are four different view types:
|
||||||
|
|
||||||
- **Masonry (default)**: Arranges cards in columns based on their card size.
|
- **Panel**: Displays one card in full width. For example a map or an image.
|
||||||
- **Panel**: *Displays one card in full width. For example a map or an image.
|
|
||||||
- **Sidebar**: Arranges cards in 2 columns, a wide one and a smaller one on the right.
|
- **Sidebar**: Arranges cards in 2 columns, a wide one and a smaller one on the right.
|
||||||
|
- **Masonry (default)**: Arranges cards in columns based on their card size.
|
||||||
- **Sections (experimental)**: Arranges cards in a grid system and lets you group them in sections.
|
- **Sections (experimental)**: Arranges cards in a grid system and lets you group them in sections.
|
||||||
|
|
||||||
To add a view to your user interface, in the top right corner, select the pencil icon. Then, select the `+` button in the top menu bar.
|
## Adding a view to a dashboard
|
||||||
|
|
||||||
<p class="img">
|
1. To add a view to your user interface, in the top right corner, select the pencil icon.
|
||||||
<img src="/images/dashboards/views.png" alt="Views toolbar">
|
2. Then, select the `+` button in the top menu bar.
|
||||||
Use titles and icons to describe the content of views.
|
|
||||||
</p>
|
<p class="img">
|
||||||
|
<img src="/images/dashboards/views.png" alt="Views toolbar">
|
||||||
|
Use titles and icons to describe the content of views.
|
||||||
|
</p>
|
||||||
|
|
||||||
## Path
|
## Path
|
||||||
|
|
||||||
@ -240,3 +248,10 @@ Subview configuration:
|
|||||||
entities:
|
entities:
|
||||||
- sensor.today_avg_price
|
- sensor.today_avg_price
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Related topics
|
||||||
|
|
||||||
|
- [Masonry view](/dashboards/masonry/)
|
||||||
|
- [Panel view](/dashboards/panel/)
|
||||||
|
- [Sidebar view](/dashboards/sidebar/)
|
||||||
|
- [Sections view](/dashboards/sections/)
|
BIN
source/images/dashboards/layout-types.png
Normal file
BIN
source/images/dashboards/layout-types.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
Loading…
x
Reference in New Issue
Block a user