mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #119] Question: Is there a way to set a fixed width to table columns? #91
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#91
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 @3cb on GitHub (May 22, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/119
I'm trying to use tview to display streaming price data from websockets in a table and the text strings have variable length which makes the columns shift back and forth when I update and redraw the table. Is there a way to fix this without manually adding empty spaces to the text strings on each update?
Apologies if I have missed it in the documentation.
@rivo commented on GitHub (May 23, 2018):
You haven't missed it. There's no fixed width parameter for table columns at the moment. I know this is what you're trying to avoid but you could do the following to pad your strings:
@3cb commented on GitHub (May 23, 2018):
Thanks for the info and the library.