Skip to main content

Module widgets

Module widgets 

Source
Expand description

Reusable form widgets for terminal applications.

Each widget handles keyboard input via [handle_key] and renders via a method taking &mut Frame and Rect. All widgets return WidgetResult<T> to signal whether input is still pending, confirmed, or cancelled.

Re-exports§

pub use numeric_field::NumericField;
pub use settings_form::SettingsForm;

Modules§

numeric_field
Single numeric value with browse (arrow incr/decr) and edit (digit entry) modes.
settings_form
Vertical stack of NumericField instances with field navigation.

Structs§

ConfirmDialog
Yes/No confirmation dialog.
MultiSelectList
Multi-selection checkbox list (arrow keys + Space to toggle + Enter to confirm).
SelectList
Single-selection list widget (arrow keys + Enter).
TextInput
Single-line text input with cursor.

Enums§

WidgetResult
Result of a widget’s key handling.