class ViewComponent
implements ViewComponentImplementation
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
components: SortedArray<Component<EventRecord>>
fakeTui: FakeTui
margin: Margin
maxOffset: Offset
offset: Offset
Methods
draw(): void
updateOffsets(component?: Component<EventRecord>): void