Skip to main content

Module table

Module table 

Source
Expand description

A resource’s list view: the Table builder and its columns and filters, the URL state a list reads, query planning (filter_expr/search_expr/order_bys_for), and the page a table loads.

Rendering lives in render, CSV export in export.

Structs§

BooleanColumn
A column of a bool field rendered as an icon.
ComputedColumn
A display-only column rendering any text from the row, with no query predicate.
DateFilter
Date filter matching a Timestamp field by calendar day.
FilterInput
What a Filter::control renders for one request.
Includes
The relations a Column reads off its row.
QueryFilter
A filter offering named predicates, such as an embedded-enum variant or any query the app names.
SelectFilter
Select filter matching a String field exactly.
Sort
Which column the table is currently sorted by, parsed from ?sort=<column>&dir=asc|desc.
Table
Table description of a Resource’s list view declaring columns and how they map to queries.
TablePage
One executed page of rows for Table::render.
TableState
Request-scoped table state, parsed from the list’s URL query.
TernaryFilter
Ternary filter matching a bool field.
TextColumn
A column of one field, rendered as text and bound through a Lens for sorting and search.

Enums§

ColumnWidth
The width a Column claims in the table’s fixed layout.
Cursor
A pagination cursor: the page after, or the page before, an encoded row.

Constants§

DEFAULT_PAGE_SIZE
The page size of a table that declares none with Table::paginate.

Traits§

Column
One table column declares its header, its cell, and its query predicates.
Filter
One table filter declares a control and its predicate.
IntoColumns
Convert a single built-in column, a tuple of any Columns, a Vec or slice of boxed columns, or () for none yet, into a table’s column list.
IntoFilters
Convert a single built-in filter, or a tuple of any Filters, into a table’s filter list.

Functions§

contains_expr
Escaped substring predicate for lens matching term.