morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::author::FormOptions< Action > Struct Template Reference

Options of form. More...

#include <author.hpp>

Public Attributes

AnyHandle prefill
 The values the form starts from.
AnyHandle key
 The identity of the record prefill holds: a new value of the same key keeps the fields the user changed, a new key loads every field. Without one, only the first value keeps them.
std::string submit
 How it submits, such as explicit.
std::optional< ShowErrors > showErrors
 When its errors show.
std::vector< FieldOverlay< Action > > fields
 The fields overlay.
Commands onSubmit
 Commands run on submit.
Commands onSuccess
 Commands run after a successful submit.
Commands onError
 Commands run after a failed submit.
FormPresentation presentation {}
 The title, button label, status line and columns.

Detailed Description

template<typename Action>
struct morph::ui::author::FormOptions< Action >

Options of form.

Template Parameters
ActionThe form's action.

Definition at line 4240 of file author.hpp.

Member Data Documentation

◆ prefill

template<typename Action>
AnyHandle morph::ui::author::FormOptions< Action >::prefill

The values the form starts from.

Definition at line 4242 of file author.hpp.

◆ key

The identity of the record prefill holds: a new value of the same key keeps the fields the user changed, a new key loads every field. Without one, only the first value keeps them.

Definition at line 4245 of file author.hpp.

◆ submit

template<typename Action>
std::string morph::ui::author::FormOptions< Action >::submit

How it submits, such as explicit.

Definition at line 4247 of file author.hpp.

◆ showErrors

template<typename Action>
std::optional<ShowErrors> morph::ui::author::FormOptions< Action >::showErrors

When its errors show.

Definition at line 4249 of file author.hpp.

◆ fields

template<typename Action>
std::vector<FieldOverlay<Action> > morph::ui::author::FormOptions< Action >::fields

The fields overlay.

Definition at line 4251 of file author.hpp.

◆ onSubmit

template<typename Action>
Commands morph::ui::author::FormOptions< Action >::onSubmit

Commands run on submit.

Definition at line 4253 of file author.hpp.

◆ onSuccess

template<typename Action>
Commands morph::ui::author::FormOptions< Action >::onSuccess

Commands run after a successful submit.

Definition at line 4255 of file author.hpp.

◆ onError

template<typename Action>
Commands morph::ui::author::FormOptions< Action >::onError

Commands run after a failed submit.

Definition at line 4257 of file author.hpp.

◆ presentation

template<typename Action>
FormPresentation morph::ui::author::FormOptions< Action >::presentation {}

The title, button label, status line and columns.

Definition at line 4259 of file author.hpp.


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