Skip to content

Help getting table columns to render #681

Answered by atye
atye asked this question in Q&A
Discussion options

You must be logged in to vote

Setting the table height to the terminal height doesn't display the column because the table height is actually only for the rows. I thought it included the columns.

This displays the columns:

t := table.New(table.WithColumns(tableCols), table.WithRows(tableRows), table.WithHeight(m.height-1), table.WithWidth(m.width))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by atye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant