morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
blank_as.hpp File Reference

morph::forms::BlankAs: what a blank string field submits. More...

#include <cstdint>

Go to the source code of this file.

Enumerations

enum class  morph::forms::BlankAs : std::uint8_t { Omit , Empty }
 What a renderer submits for a string field the user left blank (FieldMeta::blankAs). More...

Detailed Description

morph::forms::BlankAs: what a blank string field submits.

Its own header because both the schema emitters (forms.hpp) and the forms engine's field model (forms/engine/field_model.hpp) name it, and the field model must not include the emitters.

Definition in file blank_as.hpp.

Enumeration Type Documentation

◆ BlankAs

enum class morph::forms::BlankAs : std::uint8_t
strong

What a renderer submits for a string field the user left blank (FieldMeta::blankAs).

Enumerator
Omit 

Blank is "no value": the member is left out of the payload (the default).

Empty 

Blank, once the field was prefilled or edited, is an explicit ""; emitted as "x-blankAs": "empty".

Definition at line 17 of file blank_as.hpp.