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

Declare-to-override entry for one derived column of a collection view. More...

#include <views.hpp>

Public Attributes

std::string_view field
 Wire field name on the query action's row type.
std::string_view label {}
 Column header. Empty means "use `field` as-is".
bool hidden {false}
 Column present in the row model but not displayed.

Detailed Description

Declare-to-override entry for one derived column of a collection view.

Supplying a static constexpr std::array<ColumnOverride, N> columns on a view descriptor reorders, relabels, hides, or subsets the columns viewSchemaJson would otherwise derive from the query's row type; a field naming a wire key the row type does not have is emitted as a bare column (schema generation never throws — see docs/spec/forms/forms.md).

Definition at line 107 of file views.hpp.

Member Data Documentation

◆ field

std::string_view morph::views::ColumnOverride::field

Wire field name on the query action's row type.

Definition at line 109 of file views.hpp.

◆ label

std::string_view morph::views::ColumnOverride::label {}

Column header. Empty means "use `field` as-is".

Definition at line 111 of file views.hpp.

◆ hidden

bool morph::views::ColumnOverride::hidden {false}

Column present in the row model but not displayed.

Definition at line 113 of file views.hpp.


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