Documentation ¶
Overview ¶
Panels Layout is a Flex widget with hidable panels and a main content. Can be vert or horz oriendted throught the Flex widget. Panels can be jumped to with <focuskey> and hidden with <shift>-<focuskey> Recommend making the <focuskey> an: '<alt>-<key>' and hidden will be '<shift>-<alt>-<key>' Normal movement and interaction keys within the focussed panel.
main (middle) panel, can be anything, including... - the router (when this is the root view) - another DashAndPanels - a pager, grid, or any other primitive
Index ¶
- type Layout
- func (L *Layout) AddFirstPanel(name string, item tview.Primitive, fixedSize, proportion, focus int, ...)
- func (L *Layout) AddLastPanel(name string, item tview.Primitive, fixedSize, proportion, focus int, ...)
- func (L *Layout) Mount(context map[string]interface{}) error
- func (L *Layout) SetMainPanel(name string, item tview.Primitive, fixedSize, proportion, focus int, ...)
- type Panel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layout ¶
func (*Layout) AddFirstPanel ¶
func (L *Layout) AddFirstPanel(name string, item tview.Primitive, fixedSize, proportion, focus int, focuskey string, hidden bool, hiddenkey string)
AddFirstPanel adds a Panel to the left or top, depending on orientation.
Click to show internal directories.
Click to hide internal directories.