Skip to main content

Module widgets

Module widgets 

Source

Re-exports§

pub use amount::AmountWidget;
pub use date::DateWidget;
pub use editor::Editor;
pub use editor::TEXT_AREA_ROWS;
pub use rows::RowsWidget;
pub use select::SelectOption;
pub use select::SelectWidget;
pub use select::with_none;
pub use splits::FocusedSubWidget;
pub use splits::SplitRow;
pub use splits::SplitsWidget;
pub use table_panel::TablePanel;

Modules§

amount
Numeric amount entry widget.
date
Free-text date entry widget.
editor
Text-input editor: a buffer with a cursor and the editing operations the keymap names. It does no I/O, so it can be tested without a terminal; the only trace of drawing it keeps is the scroll position of the text it is shown in.
grid
The cell model of a grid field (splits, rows) and its layout.
rows
Generic editor for a rows field whose cells are all text or hidden.
select
Dropdown / list select widget.
splits
Multi-row split editor widget for the transaction create and edit forms.
table_panel
The panel every list tab draws: a Dos Navigator frame around a header, rows and a scrollbar.

Structs§

Hints
The answers so far per source and the seq of each request; a reply of any other seq is stale.

Enums§

Hint
A lookup the sub-list wants answered; a value lookup names its tag.
Widget
The primary widget union — enum dispatch, no Box<dyn>, derives Debug.
WidgetKind
Discriminant for widget-first key routing without carrying widget data.

Functions§

completion
What completing typed yields: the candidate after the one typed in full, else the first.
matching
The candidates that start with typed, ignoring case.