Silvi

A choice from a list, in the View menu or the filter bar, with fixed options or options from the data.

A select lets the reader pick one value (or several, with input: "multi") from a list. It is an entry of the report’s page.filterParams. With input: "select" it sits in the page’s View menu, a button on the filter line named by page.inputsLabel. Without input it sits in the filter bar instead, for a choice that narrows the rows, such as a product. Its value is ?<param>= in the URL; see Inputs for what it can change.

Example

ViewChart

Sales

North
Jan 2026Feb 2026020406080
South
Jan 2026Feb 2026020406080

Keys

The keys of a filterParams entry are on Inputs. For a select:

Key Meaning
param, label Required: the URL key and the label
options The choices, (filters) => [{ value, label, short }]; short is a shorter word for the button’s summary. A function of the filters, so it can list the months of the range
default (values, filters) => value: the value when the URL names none (else the first option; with "multi", a list joined by commas)
input "select" for the View menu, "multi" for several values at once (?<param>=a,b), none for the filter bar
summary In the filter bar: "always" or "unlessDefault"
meta.optionsFrom The options read from the data: a dot path to rows of { value, label }

Checks

An entry without param, label or options fails the typecheck. A URL value not among the options falls back to the default.