Updated Container API (markdown)

Jakub Sobon 2019-03-10 23:40:53 -04:00
parent 049c2ef8a0
commit 388af4512f
1 changed files with 6 additions and 1 deletions

@ -6,4 +6,9 @@ The container splits the raw terminal into smaller portions (sub-containers). Th
Developers can also use the container to customize the look of the Termdash application.
Apart from organising the terminal layout, the Termdash infrastructure uses the container to call the **Draw** method on all placed widgets and to map virtual canvases given to widgets onto the raw terminal. The container is also responsible for distributing events to individual widgets.
Apart from organising the terminal layout, the Termdash infrastructure uses the container to call the **Draw** method on all placed widgets and to map virtual canvases given to widgets onto the raw terminal. The container is also responsible for distributing events to individual widgets.
Developers have two options when it comes to building the terminal layout.
1. Use the [container](https://godoc.org/github.com/mum4k/termdash/container) package directly to create layouts organized as a [[Binary tree layout|binary-tree-layout]].
1. Use the [grid](https://godoc.org/github.com/mum4k/termdash/container/grid) package to create layouts organized into a [[Grid layout|grid-layout]].