Skip to content

<alta-values-form> ​

The values a run needs (a name, a time zone, a key), checked as they are typed.

All components

States ​

The closed list data-state takes on the element.

  • pristine
  • editing
  • invalid
  • valid
  • submitting
  • submitted

Other attributes ​

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

AttributeOnValues
data-kindfieldtext, choice, email, path, number, boolean, secret
data-statefieldempty, filled, invalid, prefilled
data-requiredfieldpresent or absent

Events ​

Dispatched on the element, bubbling. Listen with addEventListener.

  • alta-values-change
  • alta-values-valid
  • alta-values-submit

Parts ​

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

form · field · label · control · hint · error · optional · prefilled-note · submit

Slots ​

Children with slot="…" replace or add to these places.

field:<id>

Draws inside itself ​

<alta-choice-group> · <alta-secret-field>

Style it ​

css
[data-aui="values-form"][data-state="submitted"] [data-part="form"] { /* … */ }

Words it reads ​

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

values. · ui.optional

Files ​

packages/ui/src/elements/values-form.ts · packages/ui/styles/components/forms.css

Alta OS is open source (MIT).