Skip to main content
Module

x/tui/src/components/table.ts>TableComponentOptions

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
interface TableComponentOptions
implements Omit<ComponentOptions, "rectangle">
import { type TableComponentOptions } from "https://deno.land/x/tui@1.3.4/src/components/table.ts";

Interface defining object that {TableComponent}'s constructor can interpret

Properties

headers: (TableHeader | string)[]

Headers detailing size & text displayed for each data column When string is used width is determined by maximal width of either text or data in column

data: string[][]

Data displayed by table

rectangle: Omit<Rectangle, "width">

Position and size of component {TableComponent}'s rectangle doesn't include width property as width is defined by headers and table data

optional
framePieces: "sharp" | "rounded" | TableFramePieceType

Option that changes characters that surround {TableComponent}