Reference · NPL
<npl-mode>
NPL element
You write each mode as a child element. The main mode is marked so the reader knows which lens leads. This element only shows information; it changes nothing.
Children
-
<mode>`type`: `string` — required. The lens name; the chip's label. A `mode` without `type` is skipped.
Example
npl-mode.html
source
1
<npl-mode>
2
<mode type="planner"></mode>
3
<mode type="executing"></mode>
4
</npl-mode>
render
Live render boots with JavaScript — the authored source is alongside.
variant: default (no primary mark)
Without `primary` the same chips render unmarked — the declaration lists an agent's lenses; `primary` flags the lens set the agent leads with. Class-form authors spell the mark `data-primary` (`<npl-mode data-primary>` renders identically).
variant: default (no primary mark)
npl-mode-default.html
source
1
<npl-mode>
2
<mode type="planner"></mode>
3
<mode type="executing"></mode>
4
<mode type="reviewing"></mode>
5
</npl-mode>
render
Live render boots with JavaScript — the authored source is alongside.
Source: spec/schema/npl/npl-mode.md