Skip to main content

Module rows

Module rows 

Source
Expand description

Generic editor for a rows field whose cells are all text or hidden.

Keys while focused: Tab/BackTab walk the cells and yield to the outer form at the first and last one, Up/Down change the row, Ctrl+N adds a row below and Ctrl+D removes the focused one. A printable non-space key on an empty field starts a row; any other key edits the focused cell.

Structs§

RowsWidget
Rows of text cells. row_focus is < rows.len() and col_focus is < columns().count() while any row exists.

Functions§

empty_note
The note of an empty field of what, naming the key that adds one.
is_text_rows
Whether a rows field’s own cells are text, choice or hidden only, so this widget can edit it; a choice cell is a pick among its options. Any other cell kind belongs to the splits editor.