Skip to main content
Module

x/tui/src/components/mod.ts>ScrollableViewComponent

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
class ScrollableViewComponent
import { ScrollableViewComponent } from "https://deno.land/x/tui@1.3.4/src/components/mod.ts";

Component that can be assigned to other component's view property. This allows components to be drawn independently from other components. Components drawn over bounds of this component automatically adjust its offset, and when needed scrollbars are added.

Constructors

new
ScrollableViewComponent(options: ScrollableViewComponentOptions)

Type Parameters

optional
EventMap extends EventRecord = Record<never, never>

Properties

scrollbars: { vertical?: SliderComponent; horizontal?: SliderComponent; }

Methods

draw(): void
interact(method?: "keyboard" | "mouse")