-
Hello, below is a minimal example of how I am rendering tables and the output. The rows show up but the columns do not. I am sure I am missing something fairly straightforward, most likely with table height, but I haven't been able to figure this out. Any ideas on what I am missing?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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:
|
Beta Was this translation helpful? Give feedback.
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))