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

    Interface RenderTabListOptions<TItem>

    Options accepted by renderTabList.

    interface RenderTabListOptions<TItem extends TabListItem = TabListItem> {
        activeId?: string;
        characters?: TabListCharacters;
        emptyText?: string;
        focusedId?: string;
        items: readonly TItem[];
        separator?: string;
        width: number;
    }

    Type Parameters

    Index

    Properties

    activeId?: string

    Identifier rendered as the selected trigger.

    characters?: TabListCharacters

    Character tokens for focus and disabled state.

    emptyText?: string

    Text returned when items is empty.

    'No tab triggers'

    focusedId?: string

    Identifier rendered with a focus marker.

    items: readonly TItem[]

    Ordered tab triggers. Caller-owned data is never mutated.

    separator?: string

    Text inserted between triggers.

    ' '

    width: number

    Maximum terminal-cell width of the rendered line.