Skip to content

<alta-condition> ​

The state of an installed chart (ready, drifted, repairing, failed…), as a dot, a tag or a line.

All components

States ​

The closed list data-state takes on the element.

  • unknown
  • unsupported
  • blocked
  • needs-input
  • planned
  • running
  • ready
  • drifted
  • repairing
  • failed

Other attributes ​

On the element, or on a part (part: attribute). A list of values is closed.

AttributeOnValues
data-sizethe elementdot, tag, line
data-reasonthe elementany

Events ​

Dispatched on the element, bubbling. Listen with addEventListener.

  • alta-condition-action

Parts ​

Every node you can style, as [data-part="…"].

mark · word · reason · since · action

Style it ​

css
[data-aui="condition"][data-state="failed"] [data-part="mark"] { /* … */ }

Words it reads ​

Keys of the string tables (override them on <alta-provider>).

condition. · reason.

Files ​

packages/ui/src/elements/condition.ts · packages/ui/styles/components/step.css

Alta OS is open source (MIT).