Silvi

An on/off switch in the View menu, kept in the URL as on or off.

A toggle is a switch in the page’s View menu: a page.filterParams entry with input: "toggle". Its value is on or off, kept as ?<param>= in the URL. Use it to show or hide something, such as a detail table, with <When>. See Inputs for what else it can change.

Example

ViewOrders

Latest orders

OrderRegionAmount
A-1001North120
A-1002South95

Keys

Key Meaning
param, label Required: the URL key and the switch’s label
input "toggle"
options Always off then on; the on option’s short is the View button’s summary while it is on
default () => "on" to start on; off by default (the first option)

Checks

An entry without param, label or options fails the typecheck.