mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #34] multi line and auto line break columns for tables #25
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DaKine23 on GitHub (Jan 15, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/34
Would be great if there is more then a "one line content" for table cells. e.g. any ASCII art as a symbol in a single cell.
In addition it would be great to add "auto line break" as a toggle that together with "maxWidth" allows auto line breaks instead of just cutting out content.
@rivo commented on GitHub (Jan 15, 2018):
I don't think I will extend the
Tableclass to do that. It's complicated enough to make it work with one-row content, especially when you want to navigate tables with fixed rows/columns, selections etc.There is another feature request for grids, though (see #23), which I plan on adding. You could define a grid and put your ASCII art in the grid. Each cell could be a
TextViewwhich now has word line breaks, too. This should be very similar to tables with multi-line cells.