Skip to main content

Module grid

Module grid 

Source
Expand description

An enterprise-style data grid: DataGrid over GridData with GridColumns. The query pipeline in query is pure and usable on its own.

Re-exports§

pub use query::GridExportFormat;
pub use query::GridQuery;
pub use query::GridTable;
pub use query::GridTableColumn;
pub use query::GridTableKind;
pub use query::QueryResult;
pub use query::ViewRow;
pub use query::to_table;
pub use query::to_tsv;

Modules§

query
The data grid query engine: filter → search → sort → group → summarize. Pure functions over rows, independent of the UI.

Structs§

CellEdit
A change someone made in a cell, before it is kept.
ColumnLayout
One column’s place in a GridLayout.
DataGrid
A virtualized data grid in the spirit of enterprise grids: sorting by one or several columns, a filter row with operators and filters by value, a search panel, grouping by dragging columns to the group panel, group summaries, footer totals, columns to resize, reorder, pin and hide, a menu on each column, single or multiple selection, keyboard navigation, in-place editing, cell templates, CSV export, pages, saved scenarios, and rows that stay on a server (DataGrid::remote). Only the visible rows are built, so 100,000+ rows stay smooth.
FilterLayout
One column’s filter in a GridLayout.
GridCellStyle
How a cell looks, by what its row holds. Colors come from the theme.
GridColumn
A data grid column: title, width, alignment, formatting and capabilities.
GridData
The rows behind a data grid. Cloning shares the same data; editing replaces the row list copy-on-write, so query caches stay valid until a change.
GridLayout
Everything about how a grid is arranged: its columns in order, sorting, groups, filters and search. Turn it into JSON to keep it.
GridPage
What a RemoteRows loader brought.
GridRequest
What a RemoteRows loader must bring.
GridResponder
Answers one GridRequest, now or later. An answer to a question nobody is asking any more, because the filters changed meanwhile, is dropped.
GridRowAction
A button at the end of every row, such as Edit or Delete.
GridScenario
A named GridLayout, for someone to come back to with one click.
NumberFormat
How numbers are written: decimals, affixes and separators.
RemoteRows
The rows of a DataGrid on a server. The grid asks loader for a chunk at a time, only for what is on the screen, at most two at once, and keeps a limited number of them, so a table of any size costs the same to look at.
SortLayout
One sorted column of a GridLayout.
SummaryLayout
One column’s summary in a GridLayout.

Enums§

CellAlign
Horizontal alignment of a column’s cells.
SelectionMode
How rows can be selected.
SortDirection
Order of a sorted column.
Summary
An aggregate shown in group rows and in the footer.
Value
A cell value.

Type Aliases§

CellFormat
Turns a cell value into its display text.
CellTemplate
Builds a custom view for a cell value.
Row
One row: values in column order.