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

Where a Choice's options come from (x-optionsAction and its companions). More...

#include <field_model.hpp>

Public Member Functions

bool operator== (ChoiceSpec const &other) const =default
 Member-wise equality.

Public Attributes

std::string optionsAction
 The action whose result rows are the options.
std::string valueField = "id"
 The row member submitted as the value (x-optionValue).
std::string labelField = "name"
 The row member shown (x-optionLabel).
std::vector< std::string > dependsOn
 Sibling wire names whose values parameterise the options request (x-optionsDependsOn).

Detailed Description

Where a Choice's options come from (x-optionsAction and its companions).

Definition at line 143 of file field_model.hpp.

Member Function Documentation

◆ operator==()

bool morph::forms::ChoiceSpec::operator== ( ChoiceSpec const & other) const
default

Member-wise equality.

Parameters
otherThe other descriptor.
Returns
true when every member matches.

Member Data Documentation

◆ optionsAction

std::string morph::forms::ChoiceSpec::optionsAction

The action whose result rows are the options.

Definition at line 145 of file field_model.hpp.

◆ valueField

std::string morph::forms::ChoiceSpec::valueField = "id"

The row member submitted as the value (x-optionValue).

Definition at line 147 of file field_model.hpp.

◆ labelField

std::string morph::forms::ChoiceSpec::labelField = "name"

The row member shown (x-optionLabel).

Definition at line 149 of file field_model.hpp.

◆ dependsOn

std::vector<std::string> morph::forms::ChoiceSpec::dependsOn

Sibling wire names whose values parameterise the options request (x-optionsDependsOn).

Definition at line 151 of file field_model.hpp.


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