Skip to main content

Module form

Module form 

Source
Expand description

A schema-driven form modal.

Build it from a list of Fields, run it, then read the values back. All fields are visible; Tab/BackTab step between them (wrapping); the focused row is tinted, changed fields get a * marker, Ctrl+S saves and Esc cancels. Field behaviour: text edits inline; multiline edits inline and opens $EDITOR with Ctrl+G; bool toggles with Space; choice cycles with /; date opens the calendar with Enter.

Structs§

Field
One labelled form field.
Form
A modal form over a set of Fields.

Enums§

FieldValue
A read-only snapshot of a field’s value.
FormOutcome
How the form was closed.