Comments (2)
up?
from tty-table.
I haven't tried this, but it should work.
- You'd pass the evaluated output of your nested table as a value in the parent table. Its just text.
- You'd set alignment to left on parent table cells with nested tables.
- You'd need to turn truncation on and use an empty string. Something like:
truncate: " "
This program is really designed to be responsive and to automatically wrap cell values if the table is too wide for the terminal. I don't think it would be too much work to create a "nested mode" that implements the above requirements in a single stroke, but I haven't really time for this.
If you want to issue a pull request and include some tests I'll bundle it with the next release.
from tty-table.
Related Issues (20)
- unexpected random newlines HOT 1
- Unable to completely remove border and header HOT 1
- Options 'truncate' doesn't play well with Chinese HOT 3
- Access to entire row within formatter function HOT 2
- rendering issue if truncate is true and first header cell needs truncation HOT 1
- Resize code has several issues HOT 6
- infinite loop in line wrapping HOT 2
- emoji split in word wrap HOT 2
- Update README.md to display browser example with colors.
- Embedded ansi HOT 2
- Version 2.8.12 breaks backwards compatibility with version 2.8.11 HOT 5
- npm test OR node examples/cli-test.js fails HOT 1
- getAvailableWidth() should work without a width HOT 1
- Automatic width not correct when using formatter HOT 1
- Footer align does not work HOT 1
- Using a falsy value like 0 in a cell displays nothing HOT 1
- Installation error HOT 2
- Column misaligned for wide tables (high number of columns) and narrow screen HOT 1
- Smartwrap deprecation warning HOT 3
- RangeError is thrown when the column width is float HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tty-table.