Module

x/cliffy/packages/table/mod.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<IRow>
import { Table } from "https://dotland.deno.dev/x/cliffy@v0.6.0/packages/table/mod.ts";

Properties

protected
options: ITableOptions

Methods

protected
calc(): ICalc

Calc:

protected
getRows(): Row<Cell>[]
protected
renderBorderBottomRow(
row: Row<Cell>,
prevRow: Row<Cell> | undefined,
nextRow: Row<Cell> | undefined,
opts: ICalc,
): string
protected
renderBorderMidRow(
row: Row<Cell>,
prevRow: Row<Cell> | undefined,
nextRow: Row<Cell> | undefined,
opts: ICalc,
): string
protected
renderBorderTopRow(
row: Row<Cell>,
prevRow: Row<Cell> | undefined,
nextRow: Row<Cell> | undefined,
opts: ICalc,
): string

Border:

protected
renderCell(cell: Cell, maxLength: number): { current: string; next: Cell; }
protected
renderCells(row: Row<Cell>, opts: ICalc)
protected
renderRow(
row: Row<Cell>,
prevRow: Row<Cell> | undefined,
nextRow: Row<Cell> | undefined,
opts: ICalc,
_rowGroupIndex?: number,
_rowIndex?: number,
): string
protected
renderRows(
opts: ICalc,
rows: Row<Cell>[],
_rowGroupIndex?: number,
)
border(enable: boolean, override?: boolean): this
getBorder(defaultValue?: boolean): boolean | undefined
getIndent(defaultValue?: number): number | undefined

Getter:

getMaxCellWidth(defaultValue?: number | number[]): number | number[] | undefined
getMinCellWidth(defaultValue?: number | number[]): number | number[] | undefined
getPadding(defaultValue?: number | number[]): number | number[] | undefined
indent(width: number, override?: boolean): this

Setter:

maxCellWidth(width: number | number[], override?: boolean): this
minCellWidth(width: number | number[], override?: boolean): this
padding(padding: number | number[], override?: boolean): this
render(): void
toString(): string

Render: