Skip to main content

Module list

Module list 

Source
Expand description

Descriptor-driven list views.

A ListConfig describes a table and the columns to show. A generic handler renders it, fetching rows with dynamic SQL built from the descriptor. This is the first slice of the descriptor system: admin screens are data, rendered by generic code, not hand-written per entity.

The admin is inherently generic, so unlike the typed, compile-time-checked queries in laterite-auth, list queries are built and checked at runtime.

Structs§

CellCx
The per-cell state a column type renders from: the raw (text-cast) value, the display timezone, and the locale for date month/day names.
CellVm
A rendered cell’s serialisable payload: raw value, display text, and any richer data (a status pill’s slug), so an override presents the same data.
ListColumn
One column of a list view: the source field, its display label, and its column-type key (resolved through the column-type registry).
ListConfig
A list view descriptor: which table, which columns, default ordering, page size, and (optionally) where per-row edit links point.
ListPage
Display-ready rows plus the total row count for the pager.
ListParams
Query-string parameters for a list view.
RowView
One rendered row: its id (for edit links) and its display cells.

Enums§

SortDir

Traits§

ColumnType
A column type: how a list cell renders. The list counterpart of a field type, sharing Markup and the override resolver (Surface::Column).

Type Aliases§

ColumnRegistry
The column-type registry, keyed by ColumnType::view_key.