mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[GH-ISSUE #171] Add an API that will allow creation of rows and columns programatically #103
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#103
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 @mum4k on GitHub (Mar 10, 2019).
Original GitHub issue: https://github.com/mum4k/termdash/issues/171
The current container API might be easy for humans to read and write, but doesn't allow creation of layouts when the number of widgets, rows or columns isn't known at compile time.
@mum4k commented on GitHub (Mar 11, 2019):
A new grid builder was just pushed into the devel branch. This API is better suited for generating rows and columns programmatically when their number isn't known upfront (at compile time).
The documentation is in the wiki:
https://github.com/mum4k/termdash/wiki/Grid-layout
I have also updated termdashdemo which now demonstrates both the container API and the new grid builder:
github.com/mum4k/termdash@926d5226fa/termdashdemo/termdashdemo.go (L90-L172)