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

    Interface TabListData<TItem>

    Stateful data accepted by the Blessed tabList adapter.

    interface TabListData<TItem extends TabListItem = TabListItem> {
        activeId?: string;
        characters?: TabListCharacters;
        defaultValue?: string;
        emptyText?: string;
        items: readonly TItem[];
        onActivate?: (value: string) => void;
        onActiveIdChange?: (activeId: string) => void;
        separator?: string;
        value?: string;
    }

    Type Parameters

    Index

    Properties

    activeId?: string

    Preferred initial focus identifier.

    characters?: TabListCharacters

    Character tokens used by the pure renderer.

    defaultValue?: string

    Initial active trigger for uncontrolled usage. Ignored when value is supplied.

    emptyText?: string

    Text displayed when no triggers exist.

    items: readonly TItem[]

    Ordered triggers. Disabled triggers are visible but not interactive.

    onActivate?: (value: string) => void

    Called when Enter, Space, or TabListHandle.activateFocused requests activation.

    onActiveIdChange?: (activeId: string) => void

    Called after focus moves to a different enabled trigger.

    separator?: string

    Text inserted between rendered triggers.

    value?: string

    Controlled active trigger identifier.