Documentation ¶
Index ¶
- type GTNode
- type GTTree
- type KeyMap
- type Model
- func (m Model) Cursor() int
- func (m Model) FullHelp() [][]key.Binding
- func (m *Model) GetSelectedNode() (Node, error)
- func (m Model) Height() int
- func (m *Model) NavDown()
- func (m *Model) NavUp()
- func (m Model) Nodes() []Node
- func (m *Model) NumberOfNodes() int
- func (m *Model) SetCursor(cursor int)
- func (m *Model) SetHeight(newHeight int)
- func (m *Model) SetNodes(nodes []Node)
- func (m *Model) SetShowHelp() bool
- func (m *Model) SetSize(width, height int)
- func (m *Model) SetWidth(newWidth int)
- func (m Model) ShortHelp() []key.Binding
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- func (m Model) Width() int
- type Node
- type Styles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyMap ¶
type KeyMap struct { Bottom key.Binding Top key.Binding SectionDown key.Binding SectionUp key.Binding Down key.Binding Up key.Binding Quit key.Binding ShowFullHelp key.Binding CloseFullHelp key.Binding }
KeyMap holds the key bindings for the table.
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
DefaultKeyMap is the default key bindings for the table.
type Model ¶
type Model struct { KeyMap KeyMap Styles Styles Help help.Model AdditionalShortHelpKeys func() []key.Binding // contains filtered or unexported fields }
func (*Model) GetSelectedNode ¶
func (*Model) NumberOfNodes ¶
func (*Model) SetShowHelp ¶
type Node ¶
func ExampleResourceTree ¶
func ExampleResourceTree() []Node
func GenerateGuideTree ¶
func GenerateResourceTree ¶
func GenerateResourceTree(m core.ResourceList) []Node
func InitResourceTree ¶
func InitResourceTree() []Node
The default model of the resource tree in the downloads view
Click to show internal directories.
Click to hide internal directories.