Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Extension points

The seams for reaching outside a resource declaration. Five have full sections of their own: Authenticator, ExternalAuth, Uploader, Panel::layout_shell, and wired_table. The remaining three are documented here.

The traits that add a new kind of building block live in tablo::extend: a Column, a Filter, a Control, an OptionSource and a TypedValue. The built-in columns and filters and the Toggle control implement the same traits.

Relationship option sources

A relationship choice field loads its options through tablo::extend::OptionSource. Every resource is one, answering from its def as the request’s panel mounted it, so a choice over a resource offers what its list would show the same user. Implement it for a source that is not a resource, such as a lookup table no panel lists; the trait’s page says what each method states and how a load is bounded.

Table state values

tablo::Sort (?sort=<column>&dir=asc|desc), TableState::page and per_page (?page=, ?per_page=), and tablo::Cursor (?after= / ?before=) are the parsed sort and pagination of a list URL; see Tables. tablo::TablePage::position says where a numbered page sits.

Notifications

An action’s result flashes a tablo::Notification, rendered in the panel shell and stored as a one-time hardened cookie. Build one with Notification::success / error / info / warning plus .description(), and store it with tablo::notification::set_notification; see Security.