Skip to main content

label_prefix

Function label_prefix 

Source
pub fn label_prefix(
    label: &str,
    pad: usize,
    error: bool,
    theme: &Theme,
) -> Vec<Span<'static>>
Expand description

Build the label-column spans for a row. Output: " <label><*|space><filler>" — two-space left indent, label, then a red bold * if error is true (else a space), padded so all values line up at column indent + 2 + pad + 2.