Module

x/cliffy/table/table.ts>Table

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class Table
extends Array<T>
import { Table } from "https://dotland.deno.dev/x/cliffy@v0.15.0/table/table.ts";

Type Parameters

optional
T extends IRow = IRow

Properties

private
optional
headerRow: Row
protected
options: ITableSettings

Methods

body(rows: T[]): this
border(enable: boolean, override?): this
chars(chars: IBorderOptions): this
fromJson(rows: IDataRow[]): this
getBody(): T[]
getBorder(): boolean
getHeader(): Row | undefined
getIndent(): number
getMaxColWidth(): number | number[]
getMinColWidth(): number | number[]
getPadding(): number | number[]
hasBodyBorder(): boolean
hasBorder(): boolean
hasHeaderBorder(): boolean
header(header: IRow): this
indent(width: number, override?): this
maxColWidth(width: number | number[], override?): this
minColWidth(width: number | number[], override?): this
padding(padding: number | number[], override?): this
render(): this
toString(): string

Static Methods

from<T extends IRow>(rows: ITable<T>): Table<T>
render<T extends IRow>(rows: ITable<T>): void