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

    Interface ViewportHandle

    Imperative handle returned by viewport.

    interface ViewportHandle {
        element: BoxElement;
        destroy(): void;
        setData(data: ViewportData): void;
        contentElement: BoxElement;
        ensureVisible(rect: ViewportRect): ViewportSnapshot;
        resize(): ViewportSnapshot;
        scrollBy(offset: ViewportOffsetInput): ViewportSnapshot;
        scrollTo(offset: ViewportOffsetInput): ViewportSnapshot;
        snapshot(): ViewportSnapshot;
    }

    Hierarchy (View Summary)

    Index

    Properties

    element: BoxElement

    Underlying Blessed element available for standard element operations.

    contentElement: BoxElement

    Inner element that receives caller-owned content children.

    Methods