[GH-ISSUE #646] Feature request: Support table.SetRowHeight(int) #472

Closed
opened 2026-03-04 01:05:18 +03:00 by kerem · 1 comment
Owner

Originally created by @treesong on GitHub (Sep 14, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/646

While table has several columns and the screen width is not enough to display them. To show more info, I wish the table cell can contain two lines.

Originally created by @treesong on GitHub (Sep 14, 2021). Original GitHub issue: https://github.com/rivo/tview/issues/646 While table has several columns and the screen width is not enough to display them. To show more info, I wish the table cell can contain two lines.
kerem closed this issue 2026-03-04 01:05:18 +03:00
Author
Owner

@rivo commented on GitHub (Sep 27, 2021):

I'm sorry but this is unlikely going to be introduced. Everything in Table is based on the one-line premise. And once multi-line rows are introduced, I'm starting to duplicate behaviour implemented in TextView (e.g. word-wrapping). I'm also pretty confident that soon after, people will ask for irregular row heights because they won't need multi-line rows for every row.

If you need more lines in a table-like layout, you probably want to use Grid.

<!-- gh-comment-id:927789264 --> @rivo commented on GitHub (Sep 27, 2021): I'm sorry but this is unlikely going to be introduced. Everything in `Table` is based on the one-line premise. And once multi-line rows are introduced, I'm starting to duplicate behaviour implemented in `TextView` (e.g. word-wrapping). I'm also pretty confident that soon after, people will ask for irregular row heights because they won't need multi-line rows for _every_ row. If you need more lines in a table-like layout, you probably want to use [`Grid`](https://pkg.go.dev/github.com/rivo/tview#Grid).
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#472
No description provided.