import { Cell } from "https://dotland.deno.dev/x/cliffy@v1.0.0-rc.3/table/mod.ts";
Cell representation.
Can be used to customize a single cell.
import { Cell, Table } from "./mod.ts";
new Table()
.body([
["Foo", new Cell("Bar").align("right")],
["Beep", "Boop"],
])
.render();
Methods
colSpan(span: number, override?): this
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();
rowSpan(span: number, override?): this
Set row 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();