|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Owning declaration of one current-record field; no widget or edit runtime is created here. More...
#include <ui_model_form.hpp>
Public Member Functions | |
| ~FormFieldMapping ()=default | |
| Keep owning configuration transfers fallible before mount. | |
| FormFieldMapping (std::string_view caption, Value Row::*member) | |
| FormFieldMapping & | required (bool enabled=true) |
| FormFieldMapping & | readOnly (bool enabled=true) |
| FormFieldMapping & | validate (std::function< bool(const Value &)> rule) |
| FormFieldMapping & | options (FormFieldConfig config) |
| FormFieldMapping & | reference (Ref< FormField > reference) |
| FormFieldMapping & | key (std::string_view key) |
| FormFieldMapping & | codec (EditTextCodec< Value > codec) |
| template<class Factory> | |
| FormFieldMapping & | editor (Factory factory) |
Owning declaration of one current-record field; no widget or edit runtime is created here.
| Row | Owning copyable record shared by navigation and its edit session. |
| Value | Owning copyable member value; default text editors support string and arithmetic except bool. Other values use an explicit codec/editor and a compatible endpoint ownership/accounting contract. Member pointers are local selectors, not persistent schema identities. Copying this declaration retains its callbacks, caption and codec. |
|
inline |
| caption | Literal UTF-8 label copied now. |
| member | Local record selector. Owns its declaration and retains no record/page reference. |
|
inline |
| codec | Owning complete scalar conversion, retained together with target-local text history. |
|
inline |
| Factory | Copyable owning function returning an ordinary widget recipe. |
| factory | Receives the typed field and requested user read-only policy. It must bind its real property through the typed field/endpoint and honor this policy in its editor. The wrapper supplies captions/help and required marker; custom value validation, history, focus and source-readonly presentation belong to the factory. |
|
inline |
| key | Nonempty owning schema identity for requests; omitted uses the session's local member key. |
|
inline |
| config | Existing FormField text validation, async validation, messages and editor settings. |
|
inline |
| enabled | Block user editing with the existing native policy; explicit typed commands remain checked. |
|
inline |
|
inline |
| enabled | Reject empty scalar text at publication and show the native required marker. |
|
inline |
| rule | Owning typed synchronous rule; borrowed candidates expire when it returns. |