Closed justlunix closed 8 months ago
Well, I knew it was something simple. Of course I need to call the methods without actually replacing the variable by the returned struct. :)
list := tview.NewList().
AddItem("List item 1", "Some explanatory text", 'a', nil).
AddItem("List item 2", "Some explanatory text", 'b', nil).
AddItem("List item 3", "Some explanatory text", 'c', nil).
AddItem("List item 4", "Some explanatory text", 'd', nil).
AddItem("Quit", "Press to exit", 'q', nil)
list.SetBorder(true).
SetTitle("Connections")
return list
Hi, I have a problem where when I set the border on an element, the content won't be displayed anymore. I'm probably doing something wrong, so maybe someone can help me.
I think it's because the SetBorder returns a Box, so it "forgets" the other non-box settings. But I don't know how to fix it.
This will result in:
If I remove the border it will display like this: