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

    Interface RenderLegendOptions

    Options accepted by renderLegend.

    interface RenderLegendOptions {
        emptyText?: string;
        layout?: LegendLayout;
        items: readonly LegendItem[];
        separator?: string;
        width?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    emptyText?: string

    Text rendered when items is empty.

    'No legend items'

    layout?: LegendLayout

    Arrangement of legend entries.

    'horizontal'

    items: readonly LegendItem[]

    Ordered legend items.

    separator?: string

    Separator between horizontally rendered entries.

    ' '

    width?: number

    Optional maximum width of each rendered line.