[GH-ISSUE #606] Is there text wrap for TableCell? #443

Closed
opened 2026-03-04 01:05:03 +03:00 by kerem · 2 comments
Owner

Originally created by @aemengo on GitHub (May 23, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/606

I'm loving this Table Primitive, but I have some lines that are overflowing past the edge of my terminal.

I'd love to be able to toggle text wrapping, if there's a way to do it.

Originally created by @aemengo on GitHub (May 23, 2021). Original GitHub issue: https://github.com/rivo/tview/issues/606 I'm loving this `Table` Primitive, but I have some lines that are overflowing past the edge of my terminal. I'd love to be able to toggle text wrapping, if there's a way to do it.
kerem closed this issue 2026-03-04 01:05:04 +03:00
Author
Owner

@rivo commented on GitHub (May 28, 2021):

No, Table uses one line for a cell (plus the grid lines if you have them turned on). You can have multi-line text in Grids but it's functionality will be different from a Table.

Note that generally, tview lays out its contents top-down so even Grid will have no knowledge of how many lines its elements occupy. So it's different from how browsers lay out their elements. It's less "automatic".

<!-- gh-comment-id:850614520 --> @rivo commented on GitHub (May 28, 2021): No, `Table` uses one line for a cell (plus the grid lines if you have them turned on). You can have multi-line text in `Grid`s but it's functionality will be different from a `Table`. Note that generally, `tview` lays out its contents top-down so even `Grid` will have no knowledge of how many lines its elements occupy. So it's different from how browsers lay out their elements. It's less "automatic".
Author
Owner

@aemengo commented on GitHub (May 29, 2021):

Alright, thanks!

<!-- gh-comment-id:850911524 --> @aemengo commented on GitHub (May 29, 2021): Alright, thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#443
No description provided.