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

    Interface SelectionModel

    Headless selection state shared by lists, tables, trees, and menus.

    interface SelectionModel {
        clear(): boolean;
        isSelected(id: string): boolean;
        select(id: string): boolean;
        selectedIds(): string[];
        toggle(id: string): boolean;
    }
    Index

    Methods

    • Selects one enabled item according to the configured mode.

      Parameters

      • id: string

      Returns boolean