Contents

List Widget Types

list_widget_types · Tools · Pages

Read which widgets a page can hold

Parameters

This tool takes no parameters.

Reads every widget a page can hold, and what each one's configuration is.

The config.kind says how much is known about a widget's settings:

  • schema — the settings are described. The schema states each one and what it accepts, and a configuration that does not match is refused before it is stored.
  • data_view — the configuration is a Data View document: a query over a table plus a presentation. It is checked against that document's own shape.
  • chart — the configuration is a chart document: a query over a table, a chart kind, and one mapping saying which field splits the data and which fields are measured. query.limit accepts 1–1000 items. It is checked against that document's own shape.
  • chart_group — a chart document plus grouping: {field, order?: {field, direction}, limit?}. It renders one independently scaled chart per exact scalar group key. query.limit (1–1000) and query.offset select items within each group; chart.order only arranges retained points. grouping.limit is an optional positive first-N group cap, not an item cap. Group order defaults to key ascending; an alternate field uses its smallest non-null value over every matching item in the group, even in descending order. Nulls sort last. See the chart guide for configuration.
  • undescribed — the widget takes configuration, but nobody has written down what. Nothing validates it. Copy the configuration from an existing widget of that type rather than inventing settings, because a wrong one is stored without complaint and renders as a broken widget.

Both chart documents accept root-level truncation: "oldest" | "newest", defaulting to "oldest" when absent. It names the observations discarded: temporal Cartesian charts retain the newest window for "oldest" and the earliest window for "newest", ordered for selection by their horizontal time field instead of query.order. Offsets count from that selected end. This applies per group in a Chart group. chart.order is independent drawing order. Non-time charts retain query.order; truncation does not change their selection.

A widget type this does not list is one nothing declares. Writing one produces a board that renders a gap where the widget should be.