import { TableLayout } from "https://dotland.deno.dev/x/cliffy@v0.22.2/table/layout.ts";
Table layout renderer.
Methods
protected
createCell(cell: ICell | null, row: Row): CellCreate a new cell from existing cell or cell value.
protected
createLayout(): IRenderSettingsGenerates table layout including row and col span, converts all none Cell/Row values to Cell's and Row's and returns the layout rendering settings.
protected
renderBorderCell(colIndex: number,
rowSpan: number[],
opts: IRenderSettings,
Render border cell.
protected
renderCellValue(cell: Cell, maxLength: number): { current: string; next: Cell; }Render specified length of cell. Returns the rendered value and a new cell with the rest value.
protected
renderRow(rowSpan: number[],
rowIndex: number,
opts: IRenderSettings,
isMultiline?: boolean,
Render row.