A field's spec and state, handed to an override: what it shows (the value, the draft, the errors, the options) and what it writes (the draft). Copyable; valid while the session lives.
More...
#include <overrides.hpp>
A field's spec and state, handed to an override: what it shows (the value, the draft, the errors, the options) and what it writes (the draft). Copyable; valid while the session lives.
Definition at line 28 of file overrides.hpp.
◆ FieldView()
- Parameters
-
| session | The session. Borrowed. |
| state | The field. Borrowed. |
| options | The view options the form is drawn with. |
Definition at line 33 of file overrides.hpp.
◆ spec()
| FieldSpec const & morph::forms::FieldView::spec |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
The field's spec.
- Returns
- The spec.
Definition at line 38 of file overrides.hpp.
◆ state()
| FieldState & morph::forms::FieldView::state |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
The field's state: draft, encoding, error, visibility, options. Writing its text() is a user edit.
- Returns
- The state.
Definition at line 42 of file overrides.hpp.
◆ session()
| FormSession & morph::forms::FieldView::session |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
The session the field belongs to.
- Returns
- The session.
Definition at line 46 of file overrides.hpp.
◆ defaultControl()
| ui::Node morph::forms::FieldView::defaultControl |
( |
| ) |
const |
|
inlinenodiscard |
The control formView draws for this field without overrides, for an override to wrap.
- Returns
- The control.
Definition at line 498 of file form_view.hpp.
The documentation for this class was generated from the following files: