Module

x/cliffy/packages/table/lib/layout.ts>TableLayout

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class TableLayout
import { TableLayout } from "https://dotland.deno.dev/x/cliffy@v0.12.0/packages/table/lib/layout.ts";

Constructors

new
TableLayout(table: Table, options: ITableSettings)

Methods

protected
createCell(cell: ICell | null, row: Row): Cell
protected
createLayout(): IRenderSettings
protected
createRow(row: IRow): Row<Cell>
protected
renderBorderCell(
colIndex: number,
prevRow: Row<Cell> | undefined,
nextRow: Row<Cell> | undefined,
rowSpan: number[],
opts: IRenderSettings,
): string
protected
renderBorderRow(
prevRow: Row<Cell> | undefined,
nextRow: Row<Cell> | undefined,
rowSpan: number[],
opts: IRenderSettings,
): string
protected
renderCell(
colIndex: number,
row: Row<Cell>,
prevRow: Row<Cell> | undefined,
rowSpan: number[],
opts: IRenderSettings,
noBorder?: boolean,
): string
protected
renderCellValue(cell: Cell, maxLength: number): { current: string; next: Cell; }
protected
renderRow(
rowSpan: number[],
rowIndex: number,
opts: IRenderSettings,
inMultiline?: boolean,
): string
protected
renderRows(opts: IRenderSettings): string
protected
spanRows(
_rows: IRow[],
rowIndex?: number,
colIndex?: number,
rowSpan?: number[],
colSpan?: number,
): Row<Cell>[]
toString(): string