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

    Interface RenderThresholdsOptions

    Options accepted by renderThresholds.

    interface RenderThresholdsOptions {
        emptyText?: string;
        formatRange?: (context: ThresholdFormatContext) => string;
        max: number;
        min: number;
        separator?: string;
        thresholds: readonly ThresholdRange[];
        value?: number;
        width?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    emptyText?: string

    Text returned when thresholds is empty.

    'No thresholds'

    formatRange?: (context: ThresholdFormatContext) => string

    Formats each resolved range.

    ({ start, end }) => ${start}..${end}``

    max: number

    Upper domain bound.

    min: number

    Lower domain bound.

    separator?: string

    Separator used between horizontal ranges.

    ' '

    thresholds: readonly ThresholdRange[]

    Ordered qualitative ranges.

    value?: number

    Optional value used to mark one active range.

    width?: number

    Optional maximum width of each rendered line.