mirror of https://github.com/mum4k/termdash.git
Updated Container API (markdown)
parent
049c2ef8a0
commit
388af4512f
|
@ -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]].
|
Loading…
Reference in New Issue