Skip to main content

Module form

Module form 

Source
Expand description

Generic input form used by all overlay modals that collect user input.

Replaces the per-modal ConfigSetModal / ReportParamsModal duplicates. Form is a list of Fields with a focused index and a FormKind that identifies the submit target. validate is a pure function that extracts and validates the form’s buffers into a FormSubmit payload.

Structs§

Field
A single labelled input field.
Form
A generic multi-field input form.

Enums§

FormKind
What to do when the form is submitted.
FormSubmit
The validated, ready-to-dispatch payload produced by validate.

Functions§

validate
Validate the form’s buffers and produce a dispatchable submit payload.