status
This widget visually represents a status using a combination of icons and colors. The status widget can be used alone or combined with another widget inside a group widget.
The status returned is based on a Boolean condition.

Configuration options
statuses
Define at least one or more statuses based on conditions. First evaluated to true will be used. The statuses property includes:
when- the condition when the status should be shownicon- the icon that should be shown
bottom
The component will be added to the bottom of the widget.
color
Choose a color from the provided for the icon. The default color is black if the property is not specified in the YAML.
footer
Add text to the footer of the widget.
footerAlign
Align the footer text to left, right, center.
placeholder
Specify a placeholder text to display if there is no data, for example - title: No data to display.
top
The component will be added to the top of the widget.
Examples and code snippets
Status widget (2x2)

widgets:
statusStatic-2x2:
type: widget.status
options:
statuses:
- when: true
icon: check-circle-1
color: color2
bottom:
type: component.titles
options:
title: Correct
align: center
style:
isPositive: truewidgets:
2x2:
type: widget.status
options:
statuses:
- when: [email protected] = 'A 0123' ? true :false
icon: check-circle-1
color: color2
bottom:
type: component.titles
options:
title: Flight was found
align: center
style:
isPositive: trueStatus widget (2x4)
In this example the status widget is configured to show different icons and details depending on the status of a mobile device's battery. The when: property is used three times to determine the status and depending if the when evaluates to true then the details for that when property is shown.
Examples: See the complete example in GitHub.
Status widget(4x2)
In this example the status widget shows that 4 tests failed with component.titles to provide more information.
Examples: See the complete example in GitHub.
Last updated
Was this helpful?