mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #735] grid border title #540
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#540
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 @xhsky on GitHub (Jun 23, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/735
Is there a way to add a title to the grid's border?
@rivo commented on GitHub (Aug 11, 2022):
You can add a title to any primitive using
Box.SetTitle().If you mean to add a title to each grid item, drawn over the grid lines, there is no direct way. You could remove the gaps and add borders and titles to each of your grid items. But this will draw separate boxes for each item. Not as pretty as the grid lines but it might do the trick for you.