blessed-components - v1.20.0
    Preparing search index...

    Interface RenderLabelOptions

    Options accepted by renderLabel.

    interface RenderLabelOptions {
        content: string;
        align?: TextAlign;
        indicatorGap?: number;
        overflow?: LabelOverflow;
        required?: boolean;
        requiredIndicator?: string;
        suffix?: string;
        omission?: string;
        truncatePosition?: "end" | "middle" | "start";
        width?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    content: string

    Label text. ANSI sequences and Blessed tags are removed.

    align?: TextAlign

    Horizontal alignment applied after overflow handling.

    'left'

    indicatorGap?: number

    Spaces inserted between the label text and required indicator.

    1

    overflow?: LabelOverflow

    Single-line overflow policy.

    'truncate'

    required?: boolean

    Whether to append a required indicator.

    false

    requiredIndicator?: string

    Marker appended when required is true.

    '*'

    suffix?: string

    Stable suffix after the label and optional required indicator.

    ':'

    omission?: string

    Omission marker used by truncate overflow.

    '…'

    truncatePosition?: "end" | "middle" | "start"

    Truncation position used by truncate overflow.

    'end'

    width?: number

    Maximum rendered width measured in terminal cells.