mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[PR #188] [CLOSED] Box should have an content Primitive #871
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#871
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/188
Author: @delaneyj
Created: 11/21/2018
Status: ❌ Closed
Base:
master← Head:box-contets📝 Commits (1)
0cffbb0Initial implementation📊 Changes
1 file changed (+15 additions, -0 deletions)
View changed files
📝
box.go(+15 -0)📄 Description
The Box primitive is used in many examples (especially
Flex) but once you start using it adding contents inside the Box is not straight forward without generating customPrimitivesand.Draw()functions. This is an initial bare minimum implementation to support Box having a.SetContents(p Primitive).This does not change how
b.drawworks but long term it may mean the need for aDrawFuncis unnecessary and allows for more composability.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.