Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table widget #53

Closed
bulkan opened this issue May 3, 2014 · 3 comments
Closed

Table widget #53

bulkan opened this issue May 3, 2014 · 3 comments

Comments

@bulkan
Copy link
Contributor

bulkan commented May 3, 2014

Just a humble small feature request for a table widget, something like;

screen shot 2014-05-04 at 12 50 07 am

with a possible API of (inherits from Box);

var table = blessed.table({
  columns: ['uid', 'oid', 'tid'],
  rows: [
      [1,0,1],
      [2, 1, 1], 
      [3, 1, 1]
  ]
});

table.addRow([4, 1, 3]);

Is this a good idea ? I could work on a PR.

@chjj
Copy link
Owner

chjj commented Jun 5, 2014

I would be willing to accept a PR as long as the code is up to par with current blessed conventions.

@OJezu
Copy link

OJezu commented Feb 24, 2015

You may find the following interesting:
https://gist.github.com/OhJeez/2474fdcafbfa2fbf70da
It is basically something like a table, but still being a list.

It's not 100% done, as I just finished trying getting styles to cascade, and that left header style broken, among other things.

@chjj
Copy link
Owner

chjj commented May 6, 2015

Table and ListTable widgets have now been added: https://github.com/chjj/blessed#table-from-box

@chjj chjj closed this as completed May 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants