mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #661] Border styling example on the Box page #485
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#485
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 @abitrolly on GitHub (Oct 11, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/661
https://github.com/rivo/tview/wiki/Box page is nice, but it could be better if it also listed how to style boxes.
How to make a box border single line instead of double line?
How to remove side borders and leave only the top with menu at the bottom?
If Box is not the right element to make bottom menus, then a link tp a proper element with explanation why Box is not good would be nice.
@rivo commented on GitHub (Nov 8, 2021):
Boxes always have a single line if they don't have focus. Only boxes that currently have focus have double lines. (Only one box can have focus at a time.)
There is no widget that provides this out of the box. There are some tools to implement something like that yourself. Check this out:
https://github.com/rivo/tview/wiki/Primitives
Long term, there are also plans to add more decoration options to the
Boxprimitive (see the survey in #578). But at the moment, those are not available.If you only need one menu on your page, you might want to place it into its own widget.
TextVieworFormmay be a good fit for that. The presentation demo in the repo usesTextViewtogether with text view regions.