morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::forms::FormSessionOptions Struct Reference

How a session reads numbers, dates and text. More...

#include <form_session.hpp>

Public Attributes

render::NumericLocale locale {}
 How numbers are typed and shown. It holds views: the strings it names must outlive the session.
std::string bcp47 = "en"
 The locale translations are resolved in.
render::TranslationProvider translations
 The host's catalog; empty means every label is the schema's literal.
int displayOffsetMinutes = 0
 The display zone for date-times, in minutes east of UTC.
std::function< bool(std::string_view bodyJson)> accepts
 An extra readiness gate over the assembled body; empty means none. Form<A> puts the action's own validate() here.

Detailed Description

How a session reads numbers, dates and text.

Definition at line 52 of file form_session.hpp.

Member Data Documentation

◆ locale

render::NumericLocale morph::forms::FormSessionOptions::locale {}

How numbers are typed and shown. It holds views: the strings it names must outlive the session.

Definition at line 54 of file form_session.hpp.

◆ bcp47

std::string morph::forms::FormSessionOptions::bcp47 = "en"

The locale translations are resolved in.

Definition at line 56 of file form_session.hpp.

◆ translations

render::TranslationProvider morph::forms::FormSessionOptions::translations

The host's catalog; empty means every label is the schema's literal.

Definition at line 58 of file form_session.hpp.

◆ displayOffsetMinutes

int morph::forms::FormSessionOptions::displayOffsetMinutes = 0

The display zone for date-times, in minutes east of UTC.

Definition at line 60 of file form_session.hpp.

◆ accepts

std::function<bool(std::string_view bodyJson)> morph::forms::FormSessionOptions::accepts

An extra readiness gate over the assembled body; empty means none. Form<A> puts the action's own validate() here.

Definition at line 63 of file form_session.hpp.


The documentation for this struct was generated from the following file: