mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #547] SetTitle() hides tview.List #401
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#401
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 @natdm on GitHub (Jan 9, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/547
Taking the List "hello world" example and adding a SetTitle call to it:
will not render anything to the console.
@rivo commented on GitHub (Jan 11, 2021):
SetTitle()is a function ofBoxand it returns an instance ofBox. So yourlistvariable actually points to a box, and this is what gets drawn. It has no border, thus no title, so nothing gets drawn.If you want to add a title, put the
SetTitle()call in a separate line:@natdm commented on GitHub (Jan 11, 2021):
Excellent. Amazing work here, man. Thank you!