Tabular data display with headers and rows.
import { Table } from 'nikcli-tui';
new Table({ parent: screen, headers: ['Col A','Col B'], rows: [['A','1'],['B','2']] });
npm run tsx:core-gallery
s
npm i nikcli-tui
new Table({ parent: screen, top: 1, left: 2, headers: ['Name','Age'], rows: [['Alex', 31], ['Sky', 28]], sortable: true });
new Table({ parent: screen, top: 1, left: 36, headers: ['A','B'], rows: [['1','2'],['3','4']], selectable: true, onRowSelect: (i, r) => console.log(i, r) });