Skip to main content
Module

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

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

Component that displays text in given rectangle When rectangle's width and/or height properties are set to -1 then width and/or height are set dynamically depending on the text size.

Constructors

new
LabelComponent(options: LabelComponentOptions)

Type Parameters

optional
EventMap extends EventRecord = Record<never, never>

Properties

rectangle: Rectangle
value: string

Methods

draw(): void