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

    Interface TableHandle<TRow>

    Imperative handle returned by table.

    interface TableHandle<TRow extends TableRow = TableRow> {
        activeId(): string | undefined;
        focus(): void;
        focusRow(id: string): string | undefined;
        first(): string | undefined;
        last(): string | undefined;
        next(): string | undefined;
        pageBackward(): string | undefined;
        pageForward(): string | undefined;
        previous(): string | undefined;
        selectActive(): string | undefined;
        value(): string | undefined;
        element: BoxElement;
        destroy(): void;
        setData(data: TableData): void;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    element: BoxElement

    Underlying Blessed element available for standard element operations.

    Methods

    • Returns the current enabled cursor identifier.

      Returns string | undefined

    • Moves the cursor to an enabled row identifier.

      Parameters

      • id: string

      Returns string | undefined

    • Moves the cursor to the next enabled row, wrapping at the end.

      Returns string | undefined

    • Moves the cursor one viewport page backward.

      Returns string | undefined

    • Moves the cursor one viewport page forward.

      Returns string | undefined

    • Moves the cursor to the previous enabled row, wrapping at the start.

      Returns string | undefined

    • Selects the active row or emits a controlled selection request.

      Returns string | undefined

    • Returns the current controlled or uncontrolled selected identifier.

      Returns string | undefined