morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::author::ComponentOptions Struct Reference

A custom or host component (spec 5 §10). More...

#include <author.hpp>

Public Attributes

std::string qml
 The content hash of a delivered component, sha256:<64 hex digits>; empty for a host component.
std::string host
 The name of a host component the client carries; empty for a delivered one.
std::int64_t version = 0
 The host component's version.
std::vector< std::pair< std::string, PropType > > props
 The props and their types.
std::vector< std::pair< std::string, std::string > > events
 The events and their payload types.
std::optional< Node > fallback
 The built-in subtree a renderer shows when it cannot load the component; it reads the props through prop(name).

Detailed Description

A custom or host component (spec 5 §10).

Definition at line 2347 of file author.hpp.

Member Data Documentation

◆ qml

std::string morph::ui::author::ComponentOptions::qml

The content hash of a delivered component, sha256:<64 hex digits>; empty for a host component.

Definition at line 2349 of file author.hpp.

◆ host

std::string morph::ui::author::ComponentOptions::host

The name of a host component the client carries; empty for a delivered one.

Definition at line 2351 of file author.hpp.

◆ version

std::int64_t morph::ui::author::ComponentOptions::version = 0

The host component's version.

Definition at line 2353 of file author.hpp.

◆ props

std::vector<std::pair<std::string, PropType> > morph::ui::author::ComponentOptions::props

The props and their types.

Definition at line 2355 of file author.hpp.

◆ events

std::vector<std::pair<std::string, std::string> > morph::ui::author::ComponentOptions::events

The events and their payload types.

Definition at line 2357 of file author.hpp.

◆ fallback

std::optional<Node> morph::ui::author::ComponentOptions::fallback

The built-in subtree a renderer shows when it cannot load the component; it reads the props through prop(name).

Definition at line 2360 of file author.hpp.


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