Skip to main content

Module pivot_melt

Module pivot_melt 

Source
Expand description

The Pivot & Melt builder: one Surface over the whole screen, the form on the left and a live preview of the result on the right, stacked on a narrow terminal. The form is a FormRow per field with the one Picker below the rows; the preview is the first rows of the reshaped head, typed and colored as the table draws them, under a line that says what it ran over and the shape.

Constants§

SIDE_BY_SIDE
Content width from which the form and the preview sit side by side.

Functions§

hints
The builder’s keys for the status footer, the two or three that act right now: editing a row through the Picker, or walking and applying the form. Labels come from the key registry.
input_line
What the preview runs over: all of a small view, or its first rows.
question_types
Whether ? types in the builder right now (a picker narrows, a text field types), so help is F1.
render
Draw the builder over area, the whole screen above the status footer, which carries its keys (hints).
shape_line
The result’s shape, rows × columns: exact when the head is the whole view; otherwise ? for what the head cannot say, and a pivot’s columns as a floor.
split
The form’s area and the preview’s: side by side when there is room, else the form on top at the height it needs and the preview under it.
wide_pivot_callout
A callout for a surprise: a pivot that makes many columns.