mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #649] How to add a tview.Button inside a tview.NewBox #475
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#475
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 @davidpatters0n on GitHub (Sep 16, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/649
I've created the following view, the intention is to add some buttons to the navigation section.
The layout for the application follows:
Essentially what I was hoping I could do was set a
tview.Button()inside atviewBox. Or should the application be structured in a different way?@rivo commented on GitHub (Sep 27, 2021):
There are multiple ways but the simplest is probably to add a
Form, since a form can hold buttons. ABoxdoesn't really do anything. It's just a superclass for all the other primitives.@davidpatters0n commented on GitHub (Oct 1, 2021):
👍🏽 - This solves the issue I was facing.