ObjectTable
ObjectTable

Render a table of objects with configurable, linkable columns.

ObjectTable renders a table of the objects matching the YAML filter, with configurable columns. A column with link: true (e.g. id) becomes a clickable link to the object page. When columns is omitted, the table defaults to a linked id column and a title column.

Supported props

PropTypeRequiredDefaultPurpose
model_keystringyes*current route modelWhich model to read
childrenYAML text/code blocknoid + title columnsfilter + columns

* Set model_key explicitly on specs pages.

Columns

Each column is { field, link?, label? }. Column order follows the config.

KeyTypePurpose
fieldstringField name to show (id, title, type, …)
linkbooleanWhen true, the cell links to the object page
labelstringCustom header label (defaults to field)

Example

Source syntax

<ObjectTable model_key="deployment">
  ```yaml
  filter:
    objects:
      include:
        id: ["iomodel.*"]
  columns:
    - { field: id, link: true }
    - { field: title }
    - { field: type }
  ```
</ObjectTable>

Rendered output

No objects match this filter.

Common pitfalls

  • Omitting columns falls back to id (link) + title
  • Use label to give a column a friendly header
  • For non-tabular output, use ObjectList or Each

Last updated on