Skip to content

Entry display ​

Workspace Key draft workspace location infoj ui

Keys that title, lay out, group and conditionally skip infoj entries in a location view; use with any entry type.

Resource and sources

The location view is a grid. Each entry is a row with an optional title and its value.[1]

  • title is shown before the value; inline puts both on one line. tooltip adds an info icon with the text. label labels checkboxes and buttons of some entry types.
  • prefix and suffix are shown around a text or numeric value, eg. a unit.
  • class is added to the entry element; css_title and css_val are inline CSS for the title and the value.
  • group collects entries with the same group name into a drawer headed by the name; groupClassList adds classes to the drawer. Groups start collapsed; "groupClassList": "expanded" opens one. An expanded key is documented in older JSDoc but not read.[1:1]

Skipping ​

  • skipEntry always skips the entry, eg. a field needed only by another entry.
  • skipNullValue, skipUndefinedValue and skipFalsyValue skip entries with such a value, but never editable entries, so a value can still be entered.
  • layer.infoj_skip skips entries by key, field, query, type or group; see location infoj.

Examples ​

Address entries grouped in a drawer, empty values skipped.

json
{
  "dbs": "DEVDB",
  "locale": {
    "layers": {
      "retail_points": {
        "display": true,
        "format": "wkt",
        "table": "geodata.uk_glx_open_retail_points",
        "geom": "geom_p_4326",
        "srid": "4326",
        "qID": "id",
        "infoj": [
          { "title": "Name", "field": "store_name", "css_val": "font-weight: bold" },
          { "title": "Size", "field": "size_band", "inline": true, "tooltip": "Sales area band" },
          { "title": "Street", "field": "add_one", "group": "Address", "groupClassList": "expanded", "skipNullValue": true },
          { "title": "Town", "field": "town", "group": "Address", "skipNullValue": true },
          { "title": "Postcode", "field": "postcode", "group": "Address", "skipNullValue": true }
        ]
      }
    }
  }
}

  1. ui locations/infoj.mjs ↩︎ ↩︎

XYZ v5.1.0. Generated from knowledge/ at dd7a6fa27736502733499c1bf485f15659b10338. Concepts marked draft are not reviewed.