Skip to main content
Module

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

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
class ViewComponent
Re-export
import { ViewComponent } 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.

Constructors

new
ViewComponent(options: ViewComponentOptions)

Type Parameters

optional
EventMap extends EventRecord = Record<never, never>

Properties

fakeTui: FakeTui
margin: Margin
maxOffset: Offset
offset: Offset

Methods

draw(): void
updateOffsets(component?: Component<EventRecord>): void