c0ffeeca7 473d9d3fae
Dashboards: apply sentence style caps (#29890)
* Dashboards: apply sentence-style capitalization

* Apply sentence-style capitalization, apply reuse

* Apply suggestions from code review

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

* Apply suggestions from code review

* Add substep on dashboard control

* Remove code fence from title

- to focus on the topic of the content, rather than the code itself

* Apply suggestions from code review

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

---------

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2023-11-18 11:47:45 +01:00

1.2 KiB

type, title, sidebar_label, description
type title sidebar_label description
view Sidebar view Sidebar The sidebar view has 2 columns, a wide one and a smaller one on the right.

The sidebar view has 2 columns, a wide one and a smaller one on the right.

This view doesn't have support for badges.

To change a view to edit mode, or to change the location of a card, enable edit mode: Click the menu (three dots at the top right of the screen) and then Edit Dashboard.

You can set if a card should be placed in the main (left) column of the sidebar column (right), by pressing the arrow right or left arrow in the bar underneath the card.

On mobile all cards are rendered in 1 column and kept in the order of the cards in the config.

View config:

{% configuration %} type: required: true description: "sidebar" type: string {% endconfiguration %}

Cards config:

{% configuration %} view_layout.position: required: false description: "The position of the card, main or sidebar" type: string {% endconfiguration %}

Example

The position of the card is configured using YAML with the view_layout option:

type: sidebar
cards:
  - type: entities
    entities: 
      - media_player.lounge_room
    view_layout:
      position: sidebar