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

    Interface RenderMenuOptions<TItem>

    Options accepted by renderMenu.

    interface RenderMenuOptions<TItem extends MenuItem = MenuItem> {
        activeId?: string;
        characters?: MenuCharacters;
        emptyText?: string;
        height: number;
        items: readonly TItem[];
        offset?: number;
        shortcutSeparator?: string;
        width: number;
    }

    Type Parameters

    Index

    Properties

    activeId?: string

    Identifier receiving the visible focus marker.

    characters?: MenuCharacters

    Character tokens used to communicate action state without color.

    emptyText?: string

    Text returned when items is empty.

    'No actions'

    height: number

    Maximum number of rendered rows.

    items: readonly TItem[]

    Ordered actions. Caller-owned data is never mutated.

    offset?: number

    First rendered action index.

    0

    shortcutSeparator?: string

    Text inserted between a label and shortcut.

    ' '

    width: number

    Maximum terminal-cell width of each row.