Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cliffy/table/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://deno.land/x/cliffy@v0.14.1/table/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?,
colIndex?,
rowSpan?: number[],
colSpan?,
): Row<Cell>[]
toString(): string