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

    Interface RenderSelectOptions<TItem>

    Options accepted by renderSelect.

    interface RenderSelectOptions<TItem extends SelectItem = SelectItem> {
        activeId?: string;
        characters?: SelectCharacters;
        emptyText?: string;
        height: number;
        items: readonly TItem[];
        open?: boolean;
        offset?: number;
        placeholder?: string;
        value?: string;
        width: number;
    }

    Type Parameters

    Index

    Properties

    activeId?: string

    Identifier receiving the visible focus marker when open.

    characters?: SelectCharacters

    Character tokens used by the renderer.

    emptyText?: string

    Text returned when items is empty.

    'No options'

    height: number

    Maximum number of rendered rows.

    items: readonly TItem[]

    Ordered options. Caller-owned data is never mutated.

    open?: boolean

    Whether the option list is visible.

    offset?: number

    First rendered option index when open.

    0

    placeholder?: string

    Text shown when no value is selected.

    'Select an option'

    value?: string

    Selected option identifier.

    width: number

    Maximum terminal-cell width of each row.