Skip to main content
Module

x/tui/src/components/textbox.ts>TextBoxOptions

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
interface TextBoxOptions
implements ComponentOptions
import { type TextBoxOptions } from "https://deno.land/x/tui@2.1.4/src/components/textbox.ts";

Properties

optional
text: string | Signal<string>
optional
validator: RegExp | Signal<RegExp>
theme: DeepPartial<TextBoxTheme, "cursor">
optional
multiCodePointSupport: boolean | Signal<boolean>
optional
lineHighlighting: boolean | Signal<boolean>

Whether to highlight currently selected text row

optional
lineNumbering: boolean | Signal<boolean>

Whether to number textbox rows

optional
keyboardHandler: (keyPress: KeyPressEvent) => void

Function that defines what key does what while textbox is focused/active