The screen's own scope: its declarations, params, lifecycle keys, components and customization points.
More...
|
| template<typename T> |
| Handle< T > | param (std::string const &name) |
| | A typed param, set by navigation.
|
| void | title (AnyHandle const &title) |
| | The screen's title.
|
| void | identity (AnyHandle const &identity) |
| | The screen's identity: two screens with equal identities are one.
|
| void | dirty (AnyHandle const &dirty) |
| | Whether the screen has unsaved changes.
|
| void | subtitle (AnyHandle const &subtitle) |
| | The head's line under the title.
|
| void | status (HeadBadgeOptions const &badge) |
| | Appends a status badge to the head.
|
| void | action (ActionButtonOptions const &action) |
| | Appends an action to the head, run in the screen scope.
|
| void | onMount (Commands const &commands) |
| | Commands run when the screen mounts.
|
| void | onUnmount (Commands const &commands) |
| | Commands run when the screen unmounts.
|
| void | onClose (Commands const &commands) |
| | Commands run when the screen is asked to close; cancelClose() keeps it open.
|
| void | onSave (Commands const &commands) |
| | Commands run when the host asks the screen to save.
|
| void | onBackendChange (Commands const &commands) |
| | Commands run after a backend switch.
|
| void | key (std::string const &chord, Commands const &commands) |
| | A screen-wide key binding.
|
| void | showErrors (ShowErrors when) |
| | When the screen's element errors show.
|
| void | prefetch (QueryRef const &query) |
| | A query started before the screen mounts; its body reads only params.
|
| ComponentRef | component (std::string const &name, ComponentOptions const &options) |
| | A custom or host component.
|
| Point | columnsPoint (std::string const &name, Element const &table) |
| | A columns point: the user reorders, hides and resizes a table's columns.
|
| Point | arrangePoint (std::string const &name, Element const &container) |
| | An arrange point: the user reorders and hides the children of a column or row, each of which has an id.
|
| Point | choicePoint (std::string const &name, std::vector< std::string > const &options, std::string const &fallback={}) |
| | A choice point: one of a list of options.
|
| template<typename T> |
| Point | valuePoint (std::string const &name, Value const &fallback={}) |
| | A value point: one typed setting.
|
| Point | point (std::string const &name, std::string const &kind) |
| | A layout or saved point.
|
| Json | document (std::string const &documentId, Node const &view) const |
| | The document's JSON with a view.
|
|
| DeclScope ()=default |
| | An empty scope.
|
| template<typename Model> |
| ModelHandle< Model > | model (std::string const &alias, ModelOptions const &options={}) |
| | A model alias.
|
| template<typename T> |
| Handle< T > | state (std::string const &name) |
| | State with a declared type and no initial value; it starts null.
|
| template<typename T> |
| Handle< T > | state (std::string const &name, Handle< T > const &init) |
| | State initialised from an expression; its type is T's.
|
template<typename L>
requires detail::Literal<L> |
| Handle< detail::LiteralT< L > > | state (std::string const &name, L const &init) |
| | State initialised from a constant; its type is the constant's.
|
| template<typename T> |
| Handle< T > | let (std::string const &name, Handle< T > const &value) |
| | A derived value (let).
|
template<typename Action, typename Model>
requires Runs<Model, Action> |
| QueryHandle< Action > | query (std::string const &name, ModelHandle< Model > const &model, Body< Action > const &body={}, QueryOptions const &options={}) |
| | A query (spec 5 §5).
|
template<typename Action, typename Model>
requires Runs<Model, Action> |
| QueryHandle< Action, Action > | evaluate (std::string const &name, ModelHandle< Model > const &model, Body< Action > const &body={}, QueryOptions const &options={}) |
| | A query that evaluates an action without running it: the server returns its calculated fields and field errors (spec 5 §7).
|
template<typename Action, typename Model>
requires Runs<Model, Action> |
| MutationHandle< Action > | mutation (std::string const &name, ModelHandle< Model > const &model, MutationOptions< Action > const &options={}) |
| | A mutation (spec 5 §5).
|
| void | watch (AnyHandle const &watched, Commands const &commands, Source source=Source::Any) |
| | A cascade: commands that run when a value changes (spec 5 §6).
|
| void | check (CheckOptions const &options) |
| | A validation across elements (spec 5 §6).
|
| bool | empty () const |
| | Whether the scope declares nothing.
|
| void | writeTo (Json &out) const |
| | Writes the declarations into a document or a "scope" object, in the document's order.
|
| CatalogFacts const & | facts () const noexcept |
| | The catalog facts of the models and actions the scope names.
|
The screen's own scope: its declarations, params, lifecycle keys, components and customization points.
Definition at line 2494 of file author.hpp.