Skip to content

Commit

Permalink
docs for displays
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Feb 28, 2024
1 parent 3188049 commit 4aaa827
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions dashboards.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,29 @@ dashboards:
- title: Action 4
----

[#displays]
=== Displays

Displays are most commonly used with entities, but they can contain any HTML, including variables as well.

image::images/dashboard-display.png[]

[source,yaml]
.`config.yaml`
----
dashboards:
# This is the second dashboard.
- title: My Containers
contents:
- title: Container {{ container.Names }}
entity: container
type: fieldset
contents:
- type: display
title: |
{{ container.Names }} <br /><br /><strong>{{ container.State }}</strong>
- title: 'Start {{ container.Names }}'
- title: 'Stop {{ container.Names }}'
----

Binary file added images/dashboard-display.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4aaa827

Please sign in to comment.