import { Table } from "https://dotland.deno.dev/x/wmill@v1.354.0/deps.ts";
Table representation.
import { Row, Table } from "./mod.ts";
new Table()
.header(new Row("Name", "Date", "City", "Country").border())
.body([
["Baxter Herman", "Oct 1, 2020", "Harderwijk", "Slovenia"],
["Jescie Wolfe", "Dec 4, 2020", "Alto Hospicio", "Japan"],
["Allegra Cleveland", "Apr 16, 2020", "Avernas-le-Bauduin", "Samoa"],
["Aretha Gamble", "Feb 22, 2021", "Honolulu", "Georgia"],
])
.render();
Methods
fromJson(rows: Array<DataRow>): this
Read data from an array of json objects. An object represents a row and each property a column.