Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/table/cell.ts>Cell#colSpan

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method Cell.prototype.colSpan
import { Cell } from "https://deno.land/x/cliffy@v1.0.0-rc.1/table/cell.ts";

Set col span.

import { Cell, Table } from "./mod.ts";

new Table()
  .body([
    [
      new Cell("Row 1 & 2 Column 1").rowSpan(2),
      "Row 1 Column 2",
      "Row 1 Column 3",
    ],
    [new Cell("Row 2 Column 2 & 3").colSpan(2)],
  ])
  .border()
  .render();

Parameters

span: number

Number of cols to span.

optional
override = [UNSUPPORTED]

Override existing value.