mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[PR #1141] feat: new BoxedPrimitive interface implemented by *Box #1138
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#1138
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?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/1141
Author: @trakhimenok
Created: 1/8/2026
Status: 🔄 Open
Base:
master← Head:boxed-interface📝 Commits (1)
4893286feat: new BoxedPrimitive interface implemented by *Box📊 Changes
3 files changed (+102 additions, -0 deletions)
View changed files
📝
box.go(+5 -0)➕
box_test.go(+89 -0)➕
boxed_primitive.go(+8 -0)📄 Description
Resolve #1140
Often we'd want to work with set of primitives that are boxed (e.g. have
*Boxfield)This for example needed for managing borders state/color in general way in multi-panels layout.
This PR introduces:
That is implemented by:
This allows to have code like:
I've added test but if needed I can remove them.
Let me know if I need to make any adjustments - I'm open to feedback.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.