FormView
The visual state of a form to render: which fields (definition), with which values, and with which validation outcome. It is pure render input — the renderer renders state, it never binds. The same FormView drives the no-JS transport (P5.3a) and the live transport (P5.3b).
FormView::__construct()
public function __construct(Milpa\Live\Schema\FormDefinition $definition, array $values, Milpa\Live\Schema\ValidationResult $validation):Parameters
| Name | Type | Description |
|---|---|---|
| $definition | Milpa\Live\Schema\FormDefinition | |
| $values | array<string, mixed> | |
| $validation | Milpa\Live\Schema\ValidationResult |