ViewRef
A reference to a view: a list that the app computes and keeps up to date, and that the screen opens by name. The reference carries the name of the view and the type of the arguments that the view accepts.
The views that ship with the app are under ctx.views, and a plugin creates a new one with ctx.query.declare.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type | Description |
|---|---|---|
A |
undefined |
the type of the arguments that the view accepts |
Properties
Section titled “Properties”readonly args?: A;Carries the type of the arguments, for type checking. It never holds a value.
readonly name: string;The name of the view: the id of the plugin that declared it, a slash, and a local name.
