The cards that are displayed on the page according to this
schema instance. Cards are indexed and displayed next to
each other.
Individual cards represent widgets that are displayed with
the frontend and layout using the overarching layout system.
The state dependencies configuration. This defines a
tear-up process using state discovery for all the cards
that are displayed. This property is optional and only
relevant if any state discovery must be run before cards
are rendered.
Note that for cards specific state discovery, it is best
to use the Card interface's state
property.
Also note that setting the State.waitFor property
on Schema instances' state
enables the tear-up logic
for the page instead of for individual components. This
is useful in cases where more than one card on the same
page need one identical dataset.
The page identifier, this is a kebab-case formatted
name, e.g. "leaderboard-statistics". This should be
unique across one module instance.
The value of this property will also be used as the
resulting route's name, i.e. it can be referred to
by that name using vue-router
instead of the full
route path or "URI".
The layout that will be used to display this page
schema on the screen. This property defines the template
for the DOM-element that contains all items of this
page schema.
i.e. in case the page should display its items on a
grid, use the "grid"
value.
A module identifier that refers to the parent module of this page instance. It is optional and automatically set with AppKernel.
Generated using TypeDoc
Page
This interface represents groups of pages that are defined using so-called page schemas. A page schema consists of properties that define how pages are accessed (router), identified (state) and built (layout).
Furthermore, a page schema defines a recipe of components that are necessary to display the expected dataset(s).
Using the Page interface
Properties
The vue-router path definition, e.g. "/game-leaderboard".
The state dependencies configuration. This defines a tear-up process using state discovery. (Optional)
The layout type used for the homepage of this module, e.g. "flex" or "grid".
The cards that are displayed on the page according to this schema instance.
v0.1.0