[GH-ISSUE #171] Add an API that will allow creation of rows and columns programatically #103

Closed
opened 2026-03-03 16:22:24 +03:00 by kerem · 1 comment
Owner

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.

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.
kerem 2026-03-03 16:22:24 +03:00
Author
Owner

@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)

<!-- gh-comment-id:471400410 --> @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: https://github.com/mum4k/termdash/blob/926d5226fa9a183ecb1e1626124b51444768b646/termdashdemo/termdashdemo.go#L90-L172
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/termdash#103
No description provided.